Skip to content

HTML void elements (i.e. <input>) are self-closed when .vue documents are formatted #163

@godefroi

Description

@godefroi

If I have a template in a .vue file with an HTML void element (for example, an element like this:)

<input type="text" name="myinput">

When I right-click in the editor and choose "Format Document", the element will be changed to this:

<input type="text" name="myinput" />

... which is incorrect; input is an HTML void element, which should not have a closing tag, nor should it be self-closing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions