Hacker News new | ask | show | jobs
by nicoburns 1987 days 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.
1 comments

The NodeList returned by querySelectorAll() is not live. There is really no reason for it to return a NodeList other than backward compatibility.