Section 25.40. CDATASection: a CDATA node in an XML document


25.40. CDATASection: a CDATA node in an XML document

DOM Level 1 XML: Node CharacterData Text CDATASection

25.40.1. Description

This infrequently used interface represents a CDATA section in an XML document. Programmers working with HTML documents never encounter nodes of this type and do not need to use this interface.

CDATASection is a subinterface of Text and does not define any properties or methods of its own. The textual content of the CDATA section is available through the nodeValue property inherited from Node or through the data property inherited from CharacterData. Although CDATASection nodes can often be treated in the same way as Text nodes, note that the Node.normalize( ) method does not merge adjacent CDATA sections. Create a CDATASection with Document.createCDATASection( ).

25.40.2. See Also

CharacterData, Text




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net