Skip to content

Instantly share code, notes, and snippets.

@mseeley
Created September 26, 2009 07:13
Show Gist options
  • Save mseeley/194077 to your computer and use it in GitHub Desktop.
Save mseeley/194077 to your computer and use it in GitHub Desktop.
'instanceof' tests results on the objects returned from the method/property below.
IE 8
NodeList HTMLCollection StaticNodeList
all X
children X
childNodes X
getElementsByName X
getElementsByTagName X
getElementsByClassName X
querySelectorAll X
Firefox 3.5(.3)
NodeList HTMLCollection
children X
childNodes X
getElementsByName X
getElementsByTagName X
getElementsByClassName X
querySelectorAll X
Firefox 3
NodeList HTMLCollection
children
childNodes X
getElementsByName X
getElementsByTagName X
getElementsByClassName X
querySelectorAll
Firefox 2
NodeList HTMLCollection
children
childNodes X
getElementsByName X X
getElementsByTagName X X
getElementsByClassName
querySelectorAll
Safari 4
NodeList HTMLCollection
children X
childNodes X
getElementsByName X
getElementsByTagName X
getElementsByClassName X
querySelectorAll X
Safari 3.2.1
HTMLCollection is undefined
NodeList HTMLCollection
children
childNodes X
getElementsByName X
getElementsByTagName X
getElementsByClassName X
querySelectorAll X
Opera 9.6
NodeList HTMLCollection
children X
childNodes X
getElementsByName X
getElementsByTagName X
getElementsByClassName X
querySelectorAll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment