Rich Harris: Svelte parses HTML all wrong
github.com
github.com
This chapter https://htmlparser.info/conformance-checkers/ lists "Self closing tags" behind 2.46% of the errors at the time of writing.
I believe there is some reference implementation somewhere too, but I couldn't find it.
https://html.spec.whatwg.org/multipage/syntax.html#void-elem...
div was never "self-closing", iirc.
I really don't understand how people can defend using the self-closing div's etc, when this just contributes to the same set of problems they are criticising in the same sentence :smh:
Glad Rich is seeing it the same way and moves forward with fixing this!
That would only not be true if Svelte was a sub-set.