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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -