mirror of
https://github.com/svg/svgo.git
synced 2025-07-31 07:44:22 +03:00
Remove prefix/local support in elements and attributes (#1413)
These parts of element and attribute name are easy to extract. Now we can easily replace attrs with xast attributes object.
This commit is contained in:
@ -65,8 +65,6 @@ exports.fn = function (data, params) {
|
||||
if (!svg.hasAttr(attribute)) {
|
||||
svg.addAttr({
|
||||
name: attribute,
|
||||
prefix: '',
|
||||
local: attribute,
|
||||
});
|
||||
}
|
||||
} else if (typeof attribute === 'object') {
|
||||
@ -75,8 +73,6 @@ exports.fn = function (data, params) {
|
||||
svg.addAttr({
|
||||
name: key,
|
||||
value: attribute[key],
|
||||
prefix: '',
|
||||
local: key,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user