We have been using https://github.com/rushter/selectolax as a faster alternative to BeautifulSoup with html5lib because many malformed webpages in the wild don't work with lxml.
[1] https://gitlab.gnome.org/GNOME/libxml2/-/issues/211
They could have just as well defined how tag soup gets forced into XHTML.
I think pushing in both the layout design conveniences and the strictness of XML data transfer in the same standard would be quite bulky at best. In practice we'd likely see a lot of nasty security issues in implementations and so on.
Thanks!