Skip to content

Suggestion. Add option to allow using self-closing tag on all HTML elements. #189

@Pentadome

Description

@Pentadome
<div/>

This is not valid HTML. The browser will act like the closing tag doesn't exist, like so:

<div>

And vscode will correctly mark it as wrong like so:
image

But many html-like languages like Vue and JSX do allow self-closing tags, but vscode still marks it as wrong. It would be nice if we could allow all tags to be self-closed by setting a value in .vscode\settings.json

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