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:
@ -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'];
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user