Skip to content

element_invalid_self_closing_tag triggers on <enhanced:img /> #12546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ottomated opened this issue Jul 22, 2024 · 0 comments · Fixed by #12585
Closed

element_invalid_self_closing_tag triggers on <enhanced:img /> #12546

ottomated opened this issue Jul 22, 2024 · 0 comments · Fixed by #12585
Labels

Comments

@ottomated
Copy link
Contributor

Describe the bug

When using @sveltejs/enhanced-img, the <enhanced:img /> tag triggers this warning:

Self-closing HTML tags for non-void elements are ambiguous — use `<enhanced:img ...></enhanced:img>` rather than `<enhanced:img ... />`svelte(element_invalid_self_closing_tag)

Svelte should identify the custom namespace and suppress the warning here.

Reproduction

REPL

Logs

No response

System Info

System:
    OS: Linux 6.9 Fedora Linux 40 (Forty)
    CPU: (24) x64 AMD Ryzen 9 7900 12-Core Processor
    Memory: 22.55 GB / 30.49 GB
    Container: Yes
    Shell: 3.7.0 - /bin/fish
  Binaries:
    Node: 22.5.0 - ~/.volta/tools/image/node/22.5.0/bin/node
    Yarn: 4.1.1 - ~/.volta/tools/image/yarn/4.1.1/bin/yarn
    npm: 10.8.2 - ~/.volta/tools/image/node/22.5.0/bin/npm
    pnpm: 9.4.0 - ~/.volta/bin/pnpm
    bun: 1.1.19 - ~/.bun/bin/bun
  Browsers:
    Chrome: 126.0.6478.126
  npmPackages:
    svelte: ^5.0.0-next.192 => 5.0.0-next.193

Severity

annoyance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants