Y
Hacker News
new
|
ask
|
show
|
jobs
by
robertoandred
868 days ago
No, Vue’s template attributes are not valid html
2 comments
uallo
868 days ago
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
link
moritzwarhier
868 days ago
This is not the point, the point is if they are valid JavaScript or TypeScript.
link
https://vuejs.org/guide/essentials/template-syntax.html
https://html.spec.whatwg.org/#attributes-2