Skip to content

Conversation

adityaranjan08
Copy link

What This Does

This adds a tip box to the template-syntax.md guide explaining that Vue-specific attributes like v-if, @click, and v-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!

docs: clarify HTML validator warnings for Vue-specific directives
Copy link

netlify bot commented Jul 12, 2025

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit 75c274d
🔍 Latest deploy log https://app.netlify.com/projects/vuejs/deploys/6872aebf4bc43b0008eed09d
😎 Deploy Preview https://deploy-preview-3264--vuejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@@ -0,0 +1,3 @@
:::tip Vue-specific Attributes
Copy link
Member

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exxactly

@NataliaTepluhina NataliaTepluhina added the state: stale PR hasn't updated for a long time label Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: stale PR hasn't updated for a long time
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ambiguous component name error does not mention first character cannot be numeric.
2 participants