mirror of
https://github.com/svg/svgo.git
synced 2025-08-09 02:22:08 +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:
@@ -25,5 +25,6 @@ exports.description =
|
|||||||
exports.fn = function (item) {
|
exports.fn = function (item) {
|
||||||
if (item.type === 'element' && item.name === 'svg') {
|
if (item.type === 'element' && item.name === 'svg') {
|
||||||
delete item.attributes.xmlns;
|
delete item.attributes.xmlns;
|
||||||
|
delete item.attributes['xmlns:xlink'];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user