- From: Jos van den Oever <notifications@github.com>
- Date: Wed, 10 May 2017 15:25:07 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 10 May 2017 22:25:41 UTC
The draft of 9 May 2017 says: "Support for namespaces within selectors is not planned and will not be added." How should selectors behave when they use the pipe notation? Should that result in an error message? Currently browser handle this partially. ```js document.documentElement.matches("*|html") true document.documentElement.matches("|html") false document.documentElement.matches("html") true ``` This follows the rules nicely. https://www.w3.org/TR/css3-selectors/#typenmsp https://www.w3.org/TR/selectors4/#typenmsp (document.documentElement.namespaceURI in current browsers is "http://www.w3.org/1999/xhtml" for HTML5 documents. So not empty, hence the false when testing with "|html"). It would be good if the draft says "Support for namespaces *prefixes* within selectors is not planned and will not be added." (tested Firefox and Chromium) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/458
Received on Wednesday, 10 May 2017 22:25:41 UTC