getElementsByTagName() equivalent for textNodes

Posted by levik on Stack Overflow See other posts from Stack Overflow or by levik
Published on 2010-04-05T16:58:36Z Indexed on 2010/04/05 17:03 UTC
Read the original article Hit count: 229

Filed under:
|
|
|

Is there any way to get the collection of all textNode objects within a document?

getElementsByTagName() works great for Elements, but textNodes are not Elements.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about dom