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:
@ -103,13 +103,9 @@ function parseViewBox(svg) {
|
||||
|
||||
var path = new JSAPI({
|
||||
elem: 'path',
|
||||
prefix: '',
|
||||
local: 'path',
|
||||
});
|
||||
path.addAttr({
|
||||
name: 'd',
|
||||
prefix: '',
|
||||
local: 'd',
|
||||
value: 'M' + m[1] + ' ' + m[2] + 'h' + m[3] + 'v' + m[4] + 'H' + m[1] + 'z',
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user