Hacker News new | ask | show | jobs
by uallo 867 days ago
> A Vue SFC is syntactically compatible with HTML.

https://vuejs.org/api/sfc-spec.html

1 comments

No, Vue’s template attributes are not valid html
Vue uses @:[]. in their attributes and these are valid HTML attribute syntax. HTML attribute syntax only disallows SPACE"'>/= and some specific code points. Everything else is valid syntax.

https://vuejs.org/guide/essentials/template-syntax.html

https://html.spec.whatwg.org/#attributes-2

This is not the point, the point is if they are valid JavaScript or TypeScript.