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
411 B

4 years ago
  1. 'use strict';
  2. exports.type = 'perItem';
  3. exports.active = true;
  4. exports.description = 'removes <title>';
  5. /**
  6. * Remove <title>.
  7. *
  8. * https://developer.mozilla.org/en-US/docs/Web/SVG/Element/title
  9. *
  10. * @param {Object} item current iteration item
  11. * @return {Boolean} if false, item will be filtered out
  12. *
  13. * @author Igor Kalashnikov
  14. */
  15. exports.fn = function(item) {
  16. return !item.isElem('title');
  17. };