Re: [whatwg/dom] Add reference target to shadow root (PR #1353)

@dandclark commented on this pull request.



> + <li><p>If <var>event</var>'s <a>composed flag</a> is set, then return <var>shadowRoot</var>'s
+ <a for=DocumentFragment>host</a>.
+
+ <li><p>Let <var>target</var> be <var>event</var>'s <a for=Event>path</a>'s first struct's
+ <a for=Event/path>invocation target</a>.
+
+ <li><p>Let <var>source</var> be <var>event</var>'s <a for=Event>source</a>.
+
+ <li><p>If <var>shadowRoot</var> is not the <a for=tree>root</a> of <var>target</var>, and either
+ <var>source</var> is null or <var>shadowRoot</var> is not the <a for=tree>root</a> of
+ <var>source</var>, then return <var>shadowRoot</var>'s <a
+ for=DocumentFragment>host</a>.
+
+ <li><p>If <var>source</var> is not null, and <var>source</var>'s <a for=tree>root</a> is a
+ <a>shadow-including ancestor</a> of <var>shadowRoot</var>, then return the result of
+ <a>retargeting</a> <var>target</var> against <var>source</var>.

These changes to shadow root's "get the parent" have been reverted and this will now use `relatedTarget` as per https://github.com/whatwg/html/pull/10995#issuecomment-4572681552.

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

Message ID: <whatwg/dom/pull/1353/review/4453796802@github.com>

Received on Monday, 8 June 2026 22:15:34 UTC