Namespaces not considered a valid selector
See original GitHub issueHi
I’ve come across a problem with namespaced html tags, where <h:section>
is causing a problem.
Any ideas about where I should be looking in your code to make allowances for namespaces?
Thanks
Tom
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Is it possible to use HTML's .querySelector() to select by xlink ...
The Selectors API adopts the CSS selector syntax, but has no equivalent to the @namespace rule for defining a namespace. As a result,...
Read more >document that namespaces are not supported in a directive's ...
@mhevery Given namespace is a valid part of element/attribute selector, why shouldn't it be supported? 2
Read more >namespace - CSS: Cascading Style Sheets - MDN Web Docs
The defined namespaces can be used to restrict the universal, type, and attribute selectors to only select elements within that namespace.
Read more >Namespaces - Kubernetes
In Kubernetes, namespaces provides a mechanism for isolating groups of resources within a single cluster. Names of resources need to be unique ...
Read more >Selectors Level 3 - W3C
If the language does not specify a namespace prefix declaration ... attribute selectors must be considered to match an element if that ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tabjsina There’s new version (
v2.0.0
) of this library, which does better job of producing valid className selectors. It escapes the class name, so that the resulting selector should be valid even if it contains characters and sequences that are not allowed.Have a look at the new version. If you still encounter errors or invalid selectors, please create a new issue. Thank you.
@fczbkk Just to clarify,
12-column
is a valid class name as essentially every string not including a whitespace is a valid class name. However, the dot shorthand syntax in CSS does not support certain class names. You can still use[class~="12-column"]
.