DOM - Text (node)


Text node contains text without markups whereas phrasing content are text and markups.

Text nodes exist under element nodes in a DOM, and data is always stored in text nodes. Perhaps the most common error in DOM processing is to navigate to an element node and expect it to contain the data that is stored in that element. Not so! Even the simplest element node has a text node under it that contains the data.

Powered by ComboStrap