Skip to content

"--" notation for modifiers breaks XML/XHTML when inside comment #202

@pbb72

Description

@pbb72

The following causes a fatal error in XML/XHTML, and will break any page interpreted as XML:

<!-- div class="block block--mod">...</div> -->

This is because the double dash is interpreted as a comment delimiter, when inside an SGML instruction (<! ... >).

While this problem occurs for any use of double dashes, it's regrettable when these are introduced as part of a system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions