Traversing DOM (sub)trees with a recursive "walk the DOM" function.
This function traverses a DOM (sub)tree and executes a given function on each Element and Text node it visits.
Published: 6/26/2013
Author: Douglas Crockford
Source: http://www.youtube.com/watch?v=Y2Y0U-2qJMs&feature=youtu.be&t=27m15s
Tags: dom
Author: Douglas Crockford
Source: http://www.youtube.com/watch?v=Y2Y0U-2qJMs&feature=youtu.be&t=27m15s
Tags: dom