Re: [whatwg/dom] Editorial: initialize clearTargets in event dispatch correctly (PR #1347)

@domenic 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.

Yeah, either way seems OK, it's just a bit unusual and I thought ", then" was also distinctive enough.

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

Message ID: <whatwg/dom/pull/1347/review/2551863010@github.com>

Received on Wednesday, 15 January 2025 08:34:12 UTC