Re: [whatwg/dom] Add Imperative Slot API (#966)

@rniwa commented on this pull request.



> @@ -2192,6 +2192,10 @@ steps:</p>
  <li><p>If the <i>open flag</i> is set and <var>shadow</var>'s <a for=ShadowRoot>mode</a> is
  <em>not</em> "<code>open</code>", then return null.</p></li>
 
+ <li><p>If <var>shadow</var>'s <a for=ShadowRoot>slot assignment</a> is "<code>manual</code>",
+ then return the <a>slot</a> in <var>shadow</var>'s <a for=tree>descendants</a> whose <a>manually assigned nodes</a>

It is problematic to require the list of nodes that can be assigned to a given slot to be in the shadow tree of their parent node as that would force the slot elements to be in the shadow tree before any nodes can be assigned. That is the kind of construction relationship problem we discussed during AOM / element reflection and concluded that it is a show stopper issue for that use case. I don't see why it would be any different here.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/966#discussion_r608287564

Received on Wednesday, 7 April 2021 01:56:06 UTC