00:59
<Domenic>
was there ever any discussion about combining urlpattern instances? i don't see anything on github. if this isn't dumb i might open an issue
I think URLPatternList is the keyword, mentioned a couple times in the issues and explainers. I don't see any actual explanation of what it is but it was part of the very original plan. /cc wanderview
01:00
<devsnek>
ah i see
01:01
<devsnek>
yeah this would be a nice solution
06:20
<Noam Rosenthal>
Great! Will create issues later today (have to be off for a few hours)
Morning, I think all the relevant PRs are submitted
15:29
<Eric Meyer>
Well, what we need is a spec for determining "the directionality of an element"; I don't see how you'd insert "flatten the tree" into that.
I think I’m confused. Is https://html.spec.whatwg.org/#the-directionality not that spec?
16:10
<annevk>
Eric Meyer: I think it's more about the how. What Domenic is asking for is an algorithm that is equivalent to what we have today. Given an element, it returns a direction.
16:13
<Domenic>
I think I’m confused. Is https://html.spec.whatwg.org/#the-directionality not that spec?
That is the spec. However my understanding is that that algorithm gives incorrect results, currently, for elements in shadow trees. And so your goal is to modify that algorithm so that it returns correct results for elements in shadow trees.
16:16
<Eric Meyer>
That is the spec. However my understanding is that that algorithm gives incorrect results, currently, for elements in shadow trees. And so your goal is to modify that algorithm so that it returns correct results for elements in shadow trees.
Given that spec says “any element” does that mean it’s known to apply to Shadow DOM trees? Or is that part of the needed clarification?
16:16
<Domenic>
Yes, it currently applies to any element. It just gives wrong results (from what I understand) for some elements.
16:17
<Domenic>
Where by "wrong" I guess I mean "not according to latest CSSWG / implementer consensus"
16:18
<Eric Meyer>
I don’t think it’s all that wrong, actually! Except for certain edge cases with slot elements, which definitely does need to be clarified. So I think my move is to add the bit about contentless slots taking directionality from the host, and that should resolve it. (I hope.)
16:42
<annevk>
Eric Meyer: if you want to operate in the flat tree presumably the tree walking is incorrect too?
16:44
<Eric Meyer>
Eric Meyer: if you want to operate in the flat tree presumably the tree walking is incorrect too?
I don’t understand, sorry.
16:48
<annevk>
Eric Meyer: e.g., the parent of a slotted node would be the shadow host, but it might have to look at the slot element it's slotted into instead?
17:00
<Eric Meyer>
That’s a good question and I need to take a few minutes to unspool it. (If you have a specific structure in mind, I’m happy to work through it!)
19:44
<Joe jr Ribando>
Hi
19:49
<Eric Meyer>
Eric Meyer: e.g., the parent of a slotted node would be the shadow host, but it might have to look at the slot element it's slotted into instead?
I’ve been working through this (with a lot of help from bkardell) and should have an answer soon. But I do believe that we’ve managed to avoid the flattened tree.
19:53
<bkardell>
well, we avoid trying to just saying "use the flat tree" I guess...conceptually I guess it's pretty similar, just how to adjust the algorithm in the spec to arrive there
22:53
<Domenic>
Interesting, image via <embed> might be removable? https://deprecate.it/#plugin-elements
22:55
<TabAtkins>
oooooh, let's do it
22:55
<TabAtkins>
one more nail in <embed>'s coffin