mirror of
https://github.com/svg/svgo.git
synced 2025-07-29 20:21:14 +03:00
Check for "href’ by local name
This commit is contained in:
@ -27,6 +27,6 @@ var container = require('./_collections').elemsGroups.container;
|
||||
exports.fn = function(item) {
|
||||
|
||||
return !(item.isElem(container) && !item.isElem('svg') && item.isEmpty() &&
|
||||
(!item.isElem('pattern') || !item.hasAttr('xlink:href')));
|
||||
(!item.isElem('pattern') || !item.hasAttrLocal('href')));
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user