- Notifications
You must be signed in to change notification settings - Fork5k
docs: clarify HTML validator warnings for Vue-specific directives#3264
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
docs: clarify HTML validator warnings for Vue-specific directives
netlifybot commentedJul 12, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
✅ Deploy Preview forvuejs ready!
To edit notification comments on pull requests, go to yourNetlify project configuration. |
| @@ -0,0 +1,3 @@ | |||
| :::tip Vue-specific Attributes | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
suggestion:@adityaranjan08 it looks like you created a new template-syntax fine insrc/guide. Did you mean to make changes tosrc/essentials/template-guide.md?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
exxactly
What This Does
This adds a tip box to the
template-syntax.mdguide explaining that Vue-specific attributes likev-if,@click, andv-bindmay appear as invalid in HTML validators or IDEs. These are Vue template directives and are expected to be handled by Vue's compiler.Why
Fixesvuejs/vue#4428, which notes that new users may find these attributes invalid when writing Vue templates. This update clarifies that this is expected behavior and not a bug.
Thanks!