DOM traversal in implementations of javascript getElementsByTagName -
what method(s) of dom (tree) traversal implementations of javascript function getelementsbytagname use? ask because i'd sure array returned getelementsbytagname contains dom elements in order top of document bottom, case in depth-first search of dom tree, instance.
you can find out stuff reading specification
getelementsbytagname
returns nodelist of descendant elements given tag name, in order in encountered in preorder traversal of element tree.
Comments
Post a Comment