I found this ridiculously technical document:
http://www.w3.org/TR/DOM-Level-2-Traversal-Range/traversal.html#Traversal-Document
but did not see how it related to writing actual JavaScript code.
I would guess that I could use basic DOM methods and properties like eachChild()
and .children
to do the traversal, but I'm not sure what the best strategy is?