Skip to content

Commit 9ada239

Browse files
Takayoshi Kochiannevk
authored andcommitted
Clear event's target and relatedTarget when dispatch ends at a shadow root
Tests: web-platform-tests/wpt#7481. Fixes #511.
1 parent 601655d commit 9ada239

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dom.bs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,9 @@ for discussion).
12531253

12541254
<li><p>Set <var>event</var>'s {{Event/eventPhase}} attribute to {{Event/NONE}}.
12551255

1256+
<li><p>If {{Event/target}}'s <a for=tree>root</a> is a <a for=/>shadow root</a>, then set
1257+
<var>event</var>'s {{Event/target}} attribute and <var>event</var>'s <a>relatedTarget</a> to null.
1258+
12561259
<li><p>Set <var>event</var>'s {{Event/currentTarget}} attribute to null.
12571260

12581261
<li><p>Set <var>event</var>'s <a for=Event>path</a> to the empty list.

0 commit comments

Comments
 (0)