Skip to content

Commit

Permalink
Remove xmlns:xlink in removeXMLNS plugin (#1508)
Browse files Browse the repository at this point in the history
xmlns:xlink is also not required in SVGs embedded in HTML
  • Loading branch information
devongovett committed Oct 15, 2021
1 parent d29cec4 commit 2d6deea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/removeXMLNS.js
Expand Up @@ -25,5 +25,6 @@ exports.description =
exports.fn = function (item) {
if (item.type === 'element' && item.name === 'svg') {
delete item.attributes.xmlns;
delete item.attributes['xmlns:xlink'];
}
};

0 comments on commit 2d6deea

Please sign in to comment.