Skip to content

Commit 0b04ae8

Browse files
committed
Avoid setting target to the Window object
fc16564 did not adequately consider the global object. Fixes #697.
1 parent 42d2485 commit 0b04ae8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dom.bs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,8 +1271,9 @@ for discussion).
12711271
<var>touchTarget</var> against <var>parent</var> to <var>touchTargets</var>.
12721272

12731273
<li>
1274-
<p>If <var>parent</var> is a <a>node</a> and <var>target</var>'s <a for=tree>root</a> is a
1275-
<a>shadow-including inclusive ancestor</a> of <var>parent</var>, then:
1274+
<p>If <var>parent</var> is a {{Window}} object, or <var>parent</var> is a <a>node</a> and
1275+
<var>target</var>'s <a for=tree>root</a> is a <a>shadow-including inclusive ancestor</a> of
1276+
<var>parent</var>, then:
12761277

12771278
<ol>
12781279
<li><p>If <var>isActivationEvent</var> is true, <var>event</var>'s {{Event/bubbles}}

0 commit comments

Comments
 (0)