The Minor DOM Interfaces
The following interfaces are rarely used. The W3C recommendation details them if you need more information.
The Text Interface
Even though the text nodes will constitute a large number of nodes in a typical document, most of the operations on text are looked after by the CharacterData interface. In fact, the text interface has only one method, which is the splitText() method. This method accepts an offset—an unsigned long integer—as an argument, and it will split a single text node into two separate nodes.
The CDATASection Interface
The CDATASection interface has no attributes or methods of its own, and inherits the attributes and methods of the CharacterData interface.
The DocumentType Interface
Every document ...
Get XML Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.