Looks good. I'll clean up some of the details - e.g., don't use getElementsByTagName(), which descends into children, and add some caching of parse results and support for <JavaScript> and <Style> elements.
http://codereview.appspot.com/49060
Looks good. I'll clean up some of the details - e.g., don't use getElementsByTagName(), which descends into children, and add some caching of parse results and support for <JavaScript> and <Style> elements.
http://codereview.appspot.com/49060