developit / htm

Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.
Apache License 2.0
8.64k stars 169 forks source link

[Question/request] is there a list of known html compat issues? #225

Closed bigopon closed 2 years ago

bigopon commented 2 years ago

I tried to search within the repo but couldnt find any. I wanted to see how well htm can be used to handle html parsing. The goal isnt to have all the forgiveness of html, just need to be good for all the standard pattern/usage. Also, maybe can we have that stated in the readme?

developit commented 2 years ago

@bigopon HTM 2 & 3 aren't particularly well suited to HTML parsing, since we switched to emulating JSX syntax more closely than HTML.

You can use HTM 1 though - it uses the browsers HTML parser and matches HTML behavior 1:1.

bigopon commented 2 years ago

Thanks @developit