“probably doesn’t do what you think it does”

By Robin Rendle on August 26, 2015 in Web Design
0

An interesting post about the odd behaviour of querySelectorAll where it’ll match elements that you might not expect at first glance:

I think this API is surprising, and the front end engineers I’ve asked seem to agree with me. This is, however, not a bug; it’s definitely how the spec claims it should work, and how it works in Firefox, Chrome and Safari.

Direct Link to ArticlePermalink


“probably doesn’t do what you think it does” is a post from CSS-Tricks