- From: Joey Arhar <notifications@github.com>
- Date: Mon, 04 Sep 2023 03:24:16 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 4 September 2023 10:24:23 UTC
@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> I guess I at least need to check if the parent is a shadow host, right? -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/1223#discussion_r1314742151 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/pull/1223/review/1609235736@github.com>
Received on Monday, 4 September 2023 10:24:23 UTC