Skip to content

HTML5 doesn’t have self-closing tags #354

@toastal

Description

@toastal

https://jakearchibald.com/2023/against-self-closing-tags-in-html/

https://www.w3.org/TR/2011/WD-html-markup-20110113/syntax.html#void-element

Optionally, a "/" character, which may be present only if the element is a void element.

These trailing slashes are ignored for compat with XHTML, but TyXML isn’t producing the smallest output HTML5 output & the / is misleading since you can’t just decide to make it a closing tag like XML <input type=checkbox>WHAT?</input>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions