Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

createCDATASection method

Creates a CDATA section that contains the specified text.

Document Object Model (DOM) Level 3 Core Specification, Section 1.4

Syntax

var newCDATASectionNode = document.createCDATASection(text);

Parameters

text [in]

Type: String

A String value that contains the text to place inside the CDATA section.

Return value

Type: IHTMLDOMNode

Returns a reference to the CDATA section.

Standards information

Remarks

The createCDATASection method is supported only for XML documents.

Examples

The following code example creates a CDATA section.


document.createCDATASection( "My content" ); 

See also

document

 

 

Show:
© 2014 Microsoft