UNPKG

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