3 ms·
> A Vue SFC is syntactically compatible with HTML. https://vuejs.org/api/sfc-spec.html https://vuejs.org/api/sfc-spec.html
by uallo 3y ago
> A Vue SFC is syntactically compatible with HTML.
https://vuejs.org/api/sfc-spec.html https://vuejs.org/api/sfc-spec.html
- robertoandred 3y agoNo, Vue’s template attributes are not valid html
- uallo 3y agoVue 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://vuejs.org/guide/essentials/template-syntax.html https://html.spec.whatwg.org/#attributes-2 https://html.spec.whatwg.org/#attributes-2
- moritzwarhier 3y agoThis is not the point, the point is if they are valid JavaScript or TypeScript.