CDATASection object (Object/DOM)

Part of the extended interface that DOM describes for supporting non-HTML content.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Inherits from:textNode object
JavaScript syntax:-myCDATASection = myDocument.createCDATASection(someData)
Argument list:someDataThe data content for the new object

The extended interface supports various document forms other than HTML. This object is used to encapsulate marked up XML without needing to escape all of the markup characters.

You can test for the availability of this feature by means of the Implementation.hasFeature() method. In this case, test for a feature name of "XML" and a version value of "1.0"

See also:Document.createCDATASection()

Inheritance chain:

CharacterData object, Node object, textNode object