You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
426 B

4 years ago
  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. };