mirror of
https://github.com/svg/svgo.git
synced 2025-07-29 20:21:14 +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:
@ -66,8 +66,6 @@ exports.fn = function (item, params) {
|
||||
item.addAttr({
|
||||
name: 'stroke',
|
||||
value: 'none',
|
||||
prefix: '',
|
||||
local: 'stroke',
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -86,8 +84,6 @@ exports.fn = function (item, params) {
|
||||
item.addAttr({
|
||||
name: 'fill',
|
||||
value: 'none',
|
||||
prefix: '',
|
||||
local: 'fill',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user