Skip to content

Clarify using CDATA in HTML context  #10801

Open
@SetTrend

Description

@SetTrend

What is the issue with the HTML Standard?

Currently, the HTML standard doesn't get clear on whether a <![CDATA[ ]]> section may be used in HTML context:

https://html.spec.whatwg.org/multipage/syntax.html#cdata-sections

There is just an example that – speaking only for the example itself – claims "CDATA sections can only be used in foreign content (MathML or SVG)."

Is this statement true for HTML? Then it should be moved outside the example heading.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions