-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
docs: clarify HTML validator warnings for Vue-specific directives
✅ Deploy Preview for vuejs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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 in src/guide
. Did you mean to make changes to src/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.md
guide explaining that Vue-specific attributes likev-if
,@click
, andv-bind
may appear as invalid in HTML validators or IDEs. These are Vue template directives and are expected to be handled by Vue's compiler.Why
Fixes vuejs/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!