CDATASection is an Extended DOM feature, and is not used in HTML contexts.
Within the DOM, CDATASections are treated essentially as Text blocks. Their distinct type is retained in order to allow us to properly recreate the XML syntax when we write them out.
Reminder: CDATA IS NOT A COMPLETELY GENERAL SOLUTION; it can't quote its own end-of-block marking. If you need to write out a CDATA that contains the ]]> sequence, it's your responsibility to split that string over two successive CDATAs at that time.
CDATA does not participate in Element.normalize() processing.
Modifier and Type | Field and Description |
---|---|
protected transient int | fNodeIndex
Node index. |
pack-priv static final long | serialVersionUID
Hides com. |
Access | Constructor and Description |
---|---|
pack-priv | DeferredCDATASectionImpl(DeferredDocumentImpl ownerDocument, int nodeIndex)
This is the deferred constructor. |
Modifier and Type | Method and Description |
---|---|
public int | getNodeIndex()
Implements com. Returns the node index. |
protected void | synchronizeData()
Overrides com. Synchronizes the data (name and value) for fast nodes. |
fNodeIndex | back to summary |
---|---|
protected transient int fNodeIndex Node index. |
serialVersionUID | back to summary |
---|---|
pack-priv static final long serialVersionUID Hides com. Serialization version. |
DeferredCDATASectionImpl | back to summary |
---|---|
pack-priv DeferredCDATASectionImpl(DeferredDocumentImpl ownerDocument, int nodeIndex) This is the deferred constructor. Only the fNodeIndex is given here. All other data, can be requested from the ownerDocument via the index. |
getNodeIndex | back to summary |
---|---|
public int getNodeIndex() Implements com. Returns the node index. |
synchronizeData | back to summary |
---|---|
protected void synchronizeData() Overrides com. Synchronizes the data (name and value) for fast nodes. |