I understand that for a web page's node stored in a variable named 'parent', I can obtain all its child nodes using the command
var children=parent.childNodes;
I have 2 questions here--
(a) Will the above line of code only provide the nodes that are immediate children? Or will nodes even lower than immediate children also be stored in 'children' variable?
(b) How can I parse through each node in the 'children' variable?