You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using SVG sprites with <use xlink:href="" /> will not update the icon.
The reason is that getAttributeNS and setAttributeNS DOM APIs are inconsistent in it's arguments.
E.g.: lets say 'foo:bar' ('foo' being the namespace and 'bar' the local attribute name):
getAttributeNS only needs the localName, i.e. getAttributeNS('https://www.w3.org/1999/foo', 'bar');
Using SVG sprites with
<use xlink:href="" />
will not update the icon.The reason is that
getAttributeNS
andsetAttributeNS
DOM APIs are inconsistent in it's arguments.E.g.: lets say 'foo:bar' ('foo' being the namespace and 'bar' the local attribute name):
getAttributeNS
only needs thelocalName
, i.e.getAttributeNS('https://www.w3.org/1999/foo', 'bar');
setAttributeNS
expects it's fully qualified name, i.e.setAttributeNS('https://www.w3.org/1999/foo', 'foo:bar');
Affected Code
https://github.com/patrick-steele-idem/morphdom/blob/master/src/morphAttrs.js#L19-L23
The text was updated successfully, but these errors were encountered: