mirror of
https://github.com/svg/svgo.git
synced 2025-07-31 07:44:22 +03:00
Access attributes directly (#1433)
Got rid from `.attrs`, `.attr()` and `.addAttr()` usages
This commit is contained in:
@ -208,7 +208,7 @@ exports.fn = function (data, params) {
|
||||
);
|
||||
} while (idPreserved(currentIDstring));
|
||||
|
||||
IDs.get(key).attr('id').value = currentIDstring;
|
||||
IDs.get(key).attributes.id = currentIDstring;
|
||||
|
||||
for (const { element, name, value } of refs) {
|
||||
element.attributes[name] = value.includes(idValuePrefix)
|
||||
|
Reference in New Issue
Block a user