removeTitle.js 411 B

1234567891011121314151617181920212223
  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. };