Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

CDATASection

我們的志工尚未將此文章翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!

Deprecated
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.

The CDATASection interface represents a CDATA section that can be used within XML to include extended portions of unescaped text, such that the symbols < and & do not need escaping as they normally do within XML when used as text.

In the markup, a CDATA section takes the form:

<![CDATA[  ... ]]>

For example:

<foo>Here is a CDATA section: <![CDATA[  < > & ]]> with all kinds of unescaped text. </foo>

The only sequence which is not allowed within a CDATA section is the closing sequence of a CDATA section itself:

<![CDATA[  ]]> will cause an error   ]]>

Note that CDATA sections should not be used (without hiding) within HTML.

Properties

This interface has no specific properties and implements those of its parent Text.

Methods

This interface has no specific methods and implements those of its parent Text.

Specifications

Specification Status Comment
DOM
The definition of 'CDATASection' in that specification.
Living Standard Removed. No change since latest snapshot (DOM4.
DOM4
The definition of 'CDATASection' in that specification.
Working Draft Snapshot from DOM (WHATWG). Removed.
Document Object Model (DOM) Level 3 Core Specification
The definition of 'CDATASection' in that specification.
Recommendation No change from Document Object Model (DOM) Level 2 Core Specification
Document Object Model (DOM) Level 2 Core Specification
The definition of 'CDATASection' in that specification.
Recommendation No change from Document Object Model (DOM) Level 1 Specification.
Document Object Model (DOM) Level 1 Specification
The definition of 'CDATASection' in that specification.
Recommendation Initial definition

文件標籤與貢獻者

 此頁面的貢獻者: teoli, kscarfone, Sheppy, ethertank, Brettz9, Sephr
 最近更新: teoli,