Hacker News new | past | comments | ask | show | jobs | submit login

> A Vue SFC is syntactically compatible with HTML.

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




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.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: