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 7de7c5b commit 1b54e50Copy full SHA for 1b54e50
packages/vite/src/node/plugins/html.ts
@@ -308,6 +308,10 @@ function handleParseError(
308
case 'non-void-html-element-start-tag-with-trailing-solidus':
309
// Allow self closing on non-void elements #10439
310
return
311
+ case 'unexpected-question-mark-instead-of-tag-name':
312
+ // Allow <?xml> declaration and <?> empty elements
313
+ // lit generates <?>: https://github.com/lit/lit/issues/2470
314
+ return
315
}
316
const parseError = formatParseError(parserError, filePath, html)
317
throw new Error(
0 commit comments