Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

CDATASection

BaselineWidely available

TheCDATASection interface represents a CDATA sectionthat can be used within XML to include extended portions of unescaped text.When inside a CDATA section, the symbols< and& don't need escapingas they normally do.

In XML, a CDATA section looks like:

xml
<![CDATA[ … ]]>

For example:

xml
<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 sequenceof a CDATA section itself,]]>.

Note:CDATA sections should not be used within HTML. They are considered comments and are not displayed.

EventTarget Node CharacterData Text CDATASection

Instance properties

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

Instance methods

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

Specifications

Specification
DOM
# interface-cdatasection

Browser compatibility

See also

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp