question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Namespaces not considered a valid selector

See original GitHub issue

Hi

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:closed
  • Created 7 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
fczbkkcommented, Feb 9, 2020

@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.

1reaction
robinpokornycommented, May 29, 2016

@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"].

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found