ihp icon indicating copy to clipboard operation
ihp copied to clipboard

Improve HSX parser

Open jeyj0 opened this issue 2 years ago • 1 comments

  • [ ] disallow elements as children of other elements that don't allow them per spec
    • html example: p tags only allow phrasing content as children
    • [ ] only allow svg elements and attributes inside <svg></svg>
  • [ ] only allow attributes for elements where those attributes are valid
    • for implementing this, explicit lists of attributes could be opt-in until all elements are done, which would allow a gradual implementation

jeyj0 avatar Nov 23 '21 09:11 jeyj0

I support this. I already love how HSX is much more type-safe than HTML itself 😊

CSchank avatar Dec 17 '21 22:12 CSchank