Skip to content

DTD for XHTML contains wrong entity definitions #317

@abacabadabacaba

Description

@abacabadabacaba

https://html.spec.whatwg.org/multipage/xhtml.html#parsing-xhtml-documents

the public identifiers given in the following list all correspond to the URL given by this link

The DTD linked from there includes the following entity definitions:

<!ENTITY amp "&#x26;">
[...]
<!ENTITY lt "&#x3C;">

These definitions violate XML specification, section 4.6, which requires the replacement text for these entities to be character references to the corresponding characters rather than the characters themselves.

Also, the replacement text for AMP, LT and nvlt entities contains invalid markup, which makes these entities unusable. Probably these should also be replaced with character references.

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