- From: Anne van Kesteren <notifications@github.com>
- Date: Wed, 15 Jan 2025 00:12:37 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/pull/1347/review/2551820767@github.com>
@annevk commented on this pull request.
> @@ -1405,18 +1407,17 @@ property of the event being dispatched.
<li><p>Let <var>clearTargetsStruct</var> be the last struct in <var>event</var>'s
<a for=Event>path</a> whose <a for=Event/path>shadow-adjusted target</a> is non-null.
- <li><p>Let <var>clearTargets</var> be true if <var>clearTargetsStruct</var>'s
- <a for=Event/path>shadow-adjusted target</a>, <var>clearTargetsStruct</var>'s
- <a for=Event/path>relatedTarget</a>, or an {{EventTarget}} object in
- <var>clearTargetsStruct</var>'s <a for=Event/path>touch target list</a> is a <a for=/>node</a>
- and its <a for=tree>root</a> is a <a for=/>shadow root</a>; otherwise false.
+ <li><p>If <var>clearTargetsStruct</var>'s <a for=Event/path>shadow-adjusted target</a>,
+ <var>clearTargetsStruct</var>'s <a for=Event/path>relatedTarget</a>, or an {{EventTarget}} object
+ in <var>clearTargetsStruct</var>'s <a for=Event/path>touch target list</a> is a <a for=/>node</a>
+ whose <a for=tree>root</a> is a <a for=/>shadow root</a>: set <var>clearTargets</var> to true.
I did this deliberately as I thought using a colon here would make it clearer. In particular because the clause following "or" is rather long. WDYT?
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1347#discussion_r1916108181
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/dom/pull/1347/review/2551820767@github.com>
Received on Wednesday, 15 January 2025 08:12:41 UTC