I am trying to code a fallback of getElementsByClassName
with querySelectorAll
for IE8.
The problem comes with classes which start with a number.
I know identifiers can't begin with a number, so querySelectorAll
throws an error. But getElementsByClassName
accepts them.
Then, is there a way of escaping those numbers?