@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
-
-
I could apparently also just use getElementById
-
If all you need is to get an element based on its ID, then sure! +
@addyosmani - 1 more reply
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.