CDATASection : Text

Represents a CDATA section in a XML/HTML document

Browser/User Agent Support

IEMozillaNetscapeOperaSafariNetscapte
no1.0+nononono

Constructors

ConstructorIEMozillaNetscapeOperaSafariNetscapte
Represents a CDATA section in a XML/HTML document
no1.0+nononono
 

Remarks

Creates and represents CDATA sections. CDATA sections escape entire blocks of text, such as XML fragments, source code, or other content that would be interpreted as XML markup. The only content within a CDATA section that is interpreted is the string "]]>", which represents the end of a CDATA section.

The DOM specification describes CDATA sections as:

CDATA sections may occur anywhere character data may occur; they are used to escape blocks of text containing characters which would otherwise be recognized as markup. CDATA sections begin with the string "<![CDATA[" and end with the string "]]>".

While the Node object - from which this object inherits - supports the normalize method, this will not work on adjacent CDATASection nodes.

References

CharacterData | Text

Availability

HTML DOM Level 2 | W3C

Constructor Detail

CDATASection CDATASection()

Represents a CDATA section in a XML/HTML document

Visibility
internal