- From: Joey Arhar <notifications@github.com>
- Date: Mon, 04 Sep 2023 03:23:50 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/pull/1223/review/1609235092@github.com>
@josepharhar commented on this pull request. > @@ -5956,6 +5956,23 @@ is an object or one of its <a>shadow-including ancestors</a>. <p class=note>The <a>retargeting</a> algorithm is used by <a lt=dispatch>event dispatch</a> as well as other specifications, such as <cite>Fullscreen</cite>. [[FULLSCREEN]] +<p>To get the <dfn export>flat tree parent</dfn> of a <var>node</var>:</p> + +<ol> + <li><p>Let <var>parent</var> be <var>node</var>'s <a for=tree>parent</a>.</p></li> + + <li><p>If <var>parent</var> is a <a for=/>shadow root</a>, then return <var>parent</var>'s <a + for=DocumentFragment>host</a>.</p></li> + + <li><p>If <var>parent</var> is not a <a for=Element>shadow host</a>, then return + <var>node</var>.</p></li> + + <li><p>If <var>node</var>'s <a for=slottable>assigned slot</a> is null, then return null.</p></li> + + <li><p>Return <var>node</var>'s <a for=slottable>assigned slot</a>'s <a + for=tree>parent</a>.</p></li> @mfreed7 do I need to run anything recursive in the last step here? I briefly tried to make a demo with a slot assigned into another slot, but it didn't seem to work. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/1223#pullrequestreview-1609235092 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/pull/1223/review/1609235092@github.com>
Received on Monday, 4 September 2023 10:23:56 UTC