00:23
<akaster>
What's the right repo to open an issue about/look at the spec for parsing nodes in XHTML documents? Ladybird at the moment sees "application/xhtml+xml" and creates an HTML document. So we follow the rules for parsing/tokenizing/creating nodes as per HTML spec. But that's not what anyone else does. Leading to this issue: https://github.com/LadybirdBrowser/ladybird/issues/840
00:24
<akaster>
based on my reading of the HTML spec, and looking at https://github.com/whatwg/html/issues/10801 and https://github.com/whatwg/html/issues/8558 it seems like we're doing the correct thing to these XML-only constructs
00:26
<akaster>
both firefox 140 and chromium 138 create CDATASection and ProcessingInstruction nodes inside the div
00:56
<Domenic>
application/xhtml+xml is not a HTML MIME type, it's an XML MIME type. So it should go down the "load an XML document" path of https://html.spec.whatwg.org/#loading-a-document .
00:57
<Domenic>
As https://html.spec.whatwg.org/#read-xml , there is no actual specification for how to turn a stream of XML bytes into DOM nodes.
07:09
<annevk>
I think the main things that are rather weird compared to what you might expect when reading the XML specification are <template> and <script>. There's also no good interop for handling parse errors.
11:46
<annevk>
Luke Warlow: I think Darin added ReflectSetter to WebKit recently. Seems useful.
11:53
<Luke Warlow>
Ah nice! Yeah I was looking through and I think there's enough cases to warrant it in the spec too. Especially if there's implementations already benefiting.
20:28
<akaster>
https://mimesniff.spec.whatwg.org doesn't say anything about application/xhtml+xml
20:29
<AtkinsSJ>

An XML MIME type is any MIME type whose subtype ends in "+xml" or whose essence is "text/xml" or "application/xml". [RFC7303]

20:30
<AtkinsSJ>
So we should be seeing that as XML already, I thought someone implemented all of mimesniff
20:30
<akaster>
ah, just got there :D. "ends in +xml". I was doing a little misreading
20:46
<TabAtkins>
Ugh, can we block this Ahmedmeshref280 spammer entirely from the org?