2 ms·
FYI the reason it's not an array is because if you store a reference to it, it will stay up to date as and when the DOM changes.
by nicoburns 6y ago
FYI the reason it's not an array is because if you store a reference to it, it will stay up to date as and when the DOM changes.
- jarek-foksa 6y agoThe NodeList returned by querySelectorAll() is not live. There is really no reason for it to return a NodeList other than backward compatibility.