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
Follow-up, I've added name._____.replace(/^\*\|(a|script|style)$/, "*|$1:not(|$1)") to exclude HTML elements with the same name as namespace-prefixed SVG element names (could be extended to other common names, and MathML too...)
finder/finder.ts
Lines 220 to 229 in feef199
My current workaround is:
Examples:
m:math
==>*|math
svg:a
==>*|a
div
==>div
Unfortunately the wildcard
*
prefix is necessary because thequerySelector()
API does not support namespace prefixes, unlike CSS stylesheets:https://developer.mozilla.org/en-US/docs/Web/SVG/Element/a
...consequently, for example
*|a
will match not only SVG link elements but also HTML hyperlinks! :(https://www.w3.org/TR/selectors-api/#namespace-prefix-needs-to-be-resolved
The text was updated successfully, but these errors were encountered: