-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Incorrect AST generated when a Vue template binding contains a greater than operator #63
Comments
prashantpalikhe
added a commit
to prashantpalikhe/nuxt-ssr-lit
that referenced
this issue
May 9, 2024
`ultrahtml` has some shortcomings e.g. natemoo-re/ultrahtml#63 This PR switches to using the vue compiler for ast generation.
prashantpalikhe
added a commit
to prashantpalikhe/nuxt-ssr-lit
that referenced
this issue
May 9, 2024
`ultrahtml` has some shortcomings e.g. natemoo-re/ultrahtml#63 This PR switches to using the vue compiler for ast generation.
prashantpalikhe
added a commit
to prashantpalikhe/nuxt-ssr-lit
that referenced
this issue
May 9, 2024
`ultrahtml` has some shortcomings e.g. natemoo-re/ultrahtml#63 This PR switches to using the vue compiler for ast generation.
prashantpalikhe
added a commit
to prashantpalikhe/nuxt-ssr-lit
that referenced
this issue
May 9, 2024
`ultrahtml` has some shortcomings e.g. natemoo-re/ultrahtml#63 This PR switches to using the vue compiler for ast generation.
prashantpalikhe
added a commit
to prashantpalikhe/nuxt-ssr-lit
that referenced
this issue
May 9, 2024
`ultrahtml` has some shortcomings e.g. natemoo-re/ultrahtml#63 This PR switches to using the vue compiler for ast generation.
prashantpalikhe
added a commit
to prashantpalikhe/nuxt-ssr-lit
that referenced
this issue
May 9, 2024
`ultrahtml` has some shortcomings e.g. natemoo-re/ultrahtml#63 This PR switches to using the vue compiler for ast generation.
prashantpalikhe
added a commit
to prashantpalikhe/nuxt-ssr-lit
that referenced
this issue
May 9, 2024
`ultrahtml` has some shortcomings e.g. natemoo-re/ultrahtml#63 This PR switches to using the vue compiler for ast generation.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If we have a simple script like this that simulates a Vue attribute binding. And it contains a
greater than
operator.And if you run this script
node index.mjs
, the generated AST is incorrect:Here you can see the attributes
:foo
's value is incorrect. It should bebar > 1 ? 2 : 1
, but it is justbar
.And, the rendered HTML ends up being incorrect
<h1 :foo=""bar"> 1 ? 2 : 1">Hello world!</h1>
Notice the double
""
beforebar
The text was updated successfully, but these errors were encountered: