We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.2.7
vue-next-template-explorer.netlify.app
Input code like <template v->123</template> in template explorer or sfc playground.
<template v->123</template>
Vue should report missing directive name error and treat v- as a plain attribute.
v-
v- is parsed as v-slot.
v-slot
It's probably an implementation specific behavior. When the regex v- matches nothing, vue fallbacks to slot https://github.com/vuejs/vue-next/blob/master/packages/compiler-core/src/parse.ts#L779-L791
slot
The text was updated successfully, but these errors were encountered:
fix(compiler): report invalid directive name error (vuejs#4494)
fb340ad
fix(compiler): report invalid directive name error (#4494) (#4495)
c00925e
closed via #4495
Sorry, something went wrong.
No branches or pull requests
Version
3.2.7
Reproduction link
vue-next-template-explorer.netlify.app
Steps to reproduce
Input code like
<template v->123</template>
in template explorer or sfc playground.What is expected?
Vue should report missing directive name error and treat
v-
as a plain attribute.What is actually happening?
v-
is parsed asv-slot
.It's probably an implementation specific behavior. When the regex
v-
matches nothing, vue fallbacks toslot
https://github.com/vuejs/vue-next/blob/master/packages/compiler-core/src/parse.ts#L779-L791
The text was updated successfully, but these errors were encountered: