Browser/User Agent Support
| IE | Mozilla | Netscape | Opera | Safari | Netscapte | no | 1.0+ | no | no | no | no |
|---|
Constructors
| Constructor | IE | Mozilla | Netscape | Opera | Safari | Netscapte |
|---|---|---|---|---|---|---|
Represents a CDATA section in a XML/HTML document | no | 1.0+ | no | no | no | no |
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
Availability
HTML DOM Level 2 | W3C
