Subject: | walking DOM ignores comments |
I need to parse some of the comments in a web page.
I start from a particular node then walk the DOM backwards by following
previousNode or parentNode until I arrive at a comment.
Problem is the comment node is never hit. If I print each nodeType as
it's walking I only every see 1 (element) and 3 (text).
Comments seem to be totally invisible.