Skip to content

Fix self-closing div tags #341

Closed
@mhkeller

Description

@mhkeller

Svelte 5 throws a warning if you use self-closing div tags:

node_modules/svelte-highlight/LineNumbers.svelte:48:14 Self-closing HTML tags for non-void elements are ambiguous — use `<div ...></div>` rather than `<div ... />`
node_modules/svelte-highlight/LineNumbers.svelte:57:14 Self-closing HTML tags for non-void elements are ambiguous — use `<div ...></div>` rather than `<div ... />

It would help cut down on warning messages I'm getting (and other folks will get in the future) by adding a </div> where needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions