1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-31 07:44:22 +03:00

Remove xmlns:xlink in removeXMLNS plugin (#1508)

xmlns:xlink is also not required in SVGs embedded in HTML
This commit is contained in:
Devon Govett
2021-10-15 02:16:08 -07:00
committed by GitHub
parent d29cec48e3
commit 2d6deeaf21

View File

@ -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'];
}
};