2

Currently I am working on a project which involves the dynamic creation of the SVGs <use />-Element. I am using jQuery, but struck the problem that .attr() does not work for setting the xlink:href-Attribute, since this requires setAttributeNS() Now I also want to read the attribute (for the reason that I want to remove the belonging symbol), but this does not work with getAttributeNS, instead, .attr() (with getAttribute() under the hood) just works fine.

Why does that happen? This is really a strange behaviour, and totally confusing to me.

DerWaldschrat
  • 1,865
  • 13
  • 13

0 Answers0