DOM - Text (node)

> (World Wide) Web - (W3|WWW) > The Document Object Model W3C API Interface (DOM)

Table of Contents

1 - About

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.