@addyosmani Chrome throws a SyntaxError on document.querySelector('#1') even though even though https://www.w3.org/TR/html5/dom.html#the-id-attribute … says digit is valid
https://mothereff.in/css-escapes#01 so, for `id=1` the selector is e.g. `#\\31` (incl. in `querySelector`). Not a bug.
-
-
Thank you! I'll need to run those escapes on the fragment when I'm testing the document for if it exists then
-
Yep. Luckily `CSS.escape()` exists nowadays!
- 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.