Skip to content
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

SFC structure incorrect edge case #451

Closed
johnsoncodehk opened this issue Sep 3, 2021 · 1 comment
Closed

SFC structure incorrect edge case #451

johnsoncodehk opened this issue Sep 3, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@johnsoncodehk
Copy link
Member

Currently use HTMLDocument from vscode-html-languageservice to parse SFC blocks.

Case 1:

'<' in interpolation is detected as start tag.

<template>
{{ '<' }}
</template>

Case 2:

Script code not escape for JS literals.

<script>
'</script>'
// ...
</script>

There are more cases, the above is just to show that the current SFC parser solution is not reliable.

@johnsoncodehk
Copy link
Member Author

We have rollback to @vue/compiler-sfc in #1050.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant