Skip to content

Allow self-closing tags everywhere #9491

@jakearchibald

Description

@jakearchibald

People really seem to like self-closing tag syntax (see the replies to https://twitter.com/jaffathecake/status/1676843832284004353).

Maybe a switch should be added to allow them to be used on all elements?

<!doctype html allow-self-closing-or-whatever>
<!-- Now self-closes: -->
<div/>
<my-component/>
<script src=""/>

Right now, documents can be a mix of rules where /> is largely meaningless, except in SVG and MathML. Making everything consistent seems… good?

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