CDATASection

CDATA sections are used to escape blocks of text containing characters that would otherwise be regarded as markup. The only delimiter that is recognized in a CDATA section is the "]]>" string that ends the CDATA section. CDATA sections cannot be nested. Their primary purpose is for including material such as XML fragments, without needing to escape all the delimiters.

The CDATASection interface inherits from the CharacterData interface through the Text interface. Adjacent CDATASection nodes are not merged by use of the normalize method of the Node interface.

@safe
interface CDATASection : Text

Inherited Members

From Text

splitText
Text splitText(size_t offset)

Breaks this node into two nodes at the specified offset, keeping both in the tree as siblings. After being split, this node will contain all the content up to the offset point. A new node of the same type, which contains all the content at and after the offset point, is returned. If the original node had a parent node, the new node is inserted as the next sibling of the original node. When the offset is equal to the length of this node, the new node has no data.

isElementContentWhitespace
bool isElementContentWhitespace [@property getter]

Returns whether this text node contains element content whitespace, often abusively called "ignorable whitespace".

wholeText
DOMString wholeText [@property getter]

Returns the combined data of all direct text node siblings.

replaceWholeText
Text replaceWholeText(DOMString content)

Couldn't find in DOM documentation, but leavint it there.

Meta