I want to retrieve all the nodes present in particular DIV element.see the below test page (firefox)
New Document <
Node types (non exhaustive):
getElementsByTagName only picks up Element nodes. childNodes, nextSibling, etc. pick up all kinds of nodes. nextElementSibling only picks up Elements.
getElementsByTagName
childNodes
nextSibling
nextElementSibling