TIL: `document.getElementsByClassName()` & Co return _live_ `NodeList`s. `document.querySelectorAll()` returns a _static_ `NodeList`. Use `querySelectorAll()`, people!
30
449
24
1,282
Replying to @DasSurma
My description of tradeoffs between live and static, in the TAG's design principles document, might be of interest: w3ctag.github.io/design-prin…

May 17, 2018 · 12:12 PM UTC

1
3