Hacker News new | ask | show | jobs
by robertoandred 868 days ago
No, Vue’s template attributes are not valid html
2 comments

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.