3 ms·
JavaScript is doing black magic
- subv3rsion 12y agoAn HTMLCollection in the HTML DOM is live; it is automatically updated when the underlying document is changed.
- subv3rsion 12y agoUsing jQuery is a good example of comparing the behavior of HTMLCollection to a jQuery object http://jsfiddle.net/m3xzdg71/ http://jsfiddle.net/m3xzdg71/.
- lollipop24 12y agoA good example of a "dead collection" is the NodeList returned by `querySelectorAll` http://jsfiddle.net/4jyv99o6/14/ http://jsfiddle.net/4jyv99o6/14/
- FWeinb 12y agoSee the W3C Spec: http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-75708506 http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-75708506