Finding Shallow HTML Comment Nodes In The DOM Using TreeWalker This is an off-site link.  Please review our Terms of Service for additional information.

(Ben Nadel) The other day, I starting playing around with the TreeWalker API as a way to iterate over HTML comment nodes contained within a given DOM (Document Object Model) node. When I first started tinkering, it didn't look like there was any way to perform a "shallow" search (ie, only look at child nodes).

Read this article...

comments powered by Disqus