diff options
Diffstat (limited to 'node_modules/svgo/plugins/removeXMLNS.js')
| -rw-r--r-- | node_modules/svgo/plugins/removeXMLNS.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/node_modules/svgo/plugins/removeXMLNS.js b/node_modules/svgo/plugins/removeXMLNS.js deleted file mode 100644 index b7ec69a1..00000000 --- a/node_modules/svgo/plugins/removeXMLNS.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; - -exports.name = 'removeXMLNS'; -exports.description = - 'removes xmlns attribute (for inline svg, disabled by default)'; - -/** - * Remove the xmlns attribute when present. - * - * @example - * <svg viewBox="0 0 100 50" xmlns="http://www.w3.org/2000/svg"> - * ↓ - * <svg viewBox="0 0 100 50"> - * - * @author Ricardo Tomasi - * - * @type {import('./plugins-types').Plugin<'removeXMLNS'>} - */ -exports.fn = () => { - return { - element: { - enter: (node) => { - if (node.name === 'svg') { - delete node.attributes.xmlns; - } - }, - }, - }; -}; |
