Skip to content

HTML comments are being stripped from output #6805

Closed
@ghost

Description

Describe the bug

It seems that HTML comments are being stripped from output. This is problematic when using tools that rely on HTML comments as directives.

Reproduction

  1. Add HTML comment to Svelte component.
  2. View DOM in browser.
  3. Comment is gone.

Logs

No response

System Info

macOS

Severity

blocking all usage of svelte

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