04:10
<Domenic>
annevk: ^
06:16
<annevk>
jmdyck Domenic: https://github.com/whatwg/html/pull/11504
11:52
<annevk>
Luke Warlow: are you around? I'm planning on pushing a fixup commit to your reflection branch and then land it after you double checked my changes. And thanks for going the extra mile on it!
11:52
<annevk>
(Mind you, it'll take me a bit of time, but hopefully within 30min or so.)
11:52
<Luke Warlow>
Yes I am. Let me know and I'll double check your changes
11:53
<Luke Warlow>
No rush I'll be around for the foreseeable :)
12:08
<evilpie>
Hi! I am currently trying to fix https://github.com/whatwg/html/issues/5117 in Firefox. I have real trouble getting this working, because we would just run out of nodes on the stack. The fragment case always pushes the context element as the first node onto the stack. But that isn't necessarily a html node. Looking at the WebKit parser, I think it has a special case for this: https://searchfox.org/wubkat/source/Source/WebCore/html/parser/HTMLStackItem.h#127-129, which causes this node not be considered. Is this maybe missing from the spec?
12:13
<annevk>
evilpie: at least with HTML fragment parsing there's always an HTML html element as root, no?
12:15
<annevk>
Luke Warlow: nits pushed.
12:16
<Luke Warlow>
LGTM
12:17
<evilpie>
annevk: Ah yes. I believe this problem only occurs if the context node for the fragment parsing is SVG (haven't checked MathML)
12:20
<annevk>
evilpie: but then we would use XML fragment parsing, no?
12:23
<evilpie>
Not for innerHTML
12:24
<evilpie>

Concretely I am talking about:

let svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
svg.innerHTML = `<p></p><foo>

(part of https://wpt.live/html/syntax/parsing/html5lib_innerHTML_foreign-fragment.html)

12:27
<annevk>
Oh it depends on the node document, not the node itself. Interesting.
12:28
<annevk>
But then step 7 of https://html.spec.whatwg.org/#html-fragment-parsing-algorithm guarantees the HTML html element root I mentioned above.
13:34
<evilpie>
Ah you are right of course. There is even a note here: https://html.spec.whatwg.org/multipage/parsing.html#the-stack-of-open-elements