GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • MDN
  • HTML: Markup language
  • Elements
  • Global attributes
  • Attributes
  • See all…
  • Responsive images
  • HTML cheatsheet
  • Date & time formats
  • See all…
  • SVG
  • MathML
  • XML
  • CSS: Styling language

This view

  • Original page
  • New address

GeezerVison is showing developer.mozilla.org — CDATASection - Web APIs | MDN

CDATASection

Baseline
Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

  • See full compatibility
  • Learn more

The CDATASection interface represents a CDATA section that can be used within XML to include extended portions of unescaped text. When inside a CDATA section, the symbols < and & don't need escaping as 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 sequence of a CDATA section itself, ]]>.

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

Instance properties

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

Instance methods

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

Specifications

Specification
DOM
# interface-cdatasection

Browser compatibility

See also

  • Document.createCDATASection()

Help improve MDN

Learn how to contribute

This page was last modified on Jan 21, 2025 by MDN contributors.

View this page on GitHub • Report a problem with this content
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.