Created
November 10, 2012 14:48
-
-
Save ralt/4051304 to your computer and use it in GitHub Desktop.
HTMLCollection vs NodeList
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var divs = document.getElementsByTagName('div'); | |
({}).toString.apply(divs); | |
// Firefox: "[object HTMLCollection]" | |
// Chrome/Safari: "[object NodeList]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment