Is it possible to use HTML’s .querySelector() to select by xlink attribute in an SVG?

Query selector can handle namespaces, but it gets tricky because The syntax for specifying namespaces in CSS selectors is different from html; The querySelector API doesn’t have any method for assigning a namespace prefix (like xlink) to an actual namespace (like “http://www.w3.org/1999/xlink”). On the first point, the relevant part of the CSS specs allows you … Read more