-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
Description
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
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