We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5966d7b commit bc8232bCopy full SHA for bc8232b
packages/svelte/src/compiler/phases/2-analyze/validation.js
@@ -570,8 +570,12 @@ const validation = {
570
}
571
572
573
- const is_self_closing = context.state.analysis.source[node.end - 2] === '/';
574
- if (is_self_closing && !VoidElements.includes(node.name) && !SVGElements.includes(node.name)) {
+ if (
+ context.state.analysis.source[node.end - 2] === '/' &&
575
+ context.state.options.namespace !== 'foreign' &&
576
+ !VoidElements.includes(node.name) &&
577
+ !SVGElements.includes(node.name)
578
+ ) {
579
warn(
580
context.state.analysis.warnings,
581
node,
0 commit comments