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
Support for optional (closing) tags #5603
Labels
bug: upstream
Bug in a dependency of Vite
feat: html
p3-minor-bug
An edge case that only affects very specific usage (priority)
Comments
Is this @vue/compiler-dom's bug? @sodatea |
This sounds similar to #5966 which is requesting for a more lenient HTML parser. Currently we're using Vue's parser for HTML but we may have to explore other parsers to achieve this. |
kachick
added a commit
to mobu-of-the-world/emobu
that referenced
this issue
May 19, 2022
patak-dev
added
the
p3-minor-bug
An edge case that only affects very specific usage (priority)
label
Jul 29, 2022
11 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bug: upstream
Bug in a dependency of Vite
feat: html
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
Some tags are optional in HTML. For example,
<head>
,<body>
and<html>
. The closing tag of<html>
can be omitted. A body is started implicitly when the first non-<head>
-element is created.This seems to cause issues with vite's parser.
Reproduction
This HTML template:
Causes a parsing error, probably due to the missing
</html>
:Adding
</html>
fixes this:But then, the script and styles are positioned before
<!doctype html>
:Adding a
<head>
and<body>
also fixes this.System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: