removeStyleElement.js 426 B

1234567891011121314151617181920212223
  1. 'use strict';
  2. exports.type = 'perItem';
  3. exports.active = false;
  4. exports.description = 'removes <style> element (disabled by default)';
  5. /**
  6. * Remove <style>.
  7. *
  8. * http://www.w3.org/TR/SVG/styling.html#StyleElement
  9. *
  10. * @param {Object} item current iteration item
  11. * @return {Boolean} if false, item will be filtered out
  12. *
  13. * @author Betsy Dupuis
  14. */
  15. exports.fn = function(item) {
  16. return !item.isElem('style');
  17. };