Skip to content

Commit

Permalink
Shadow: Make Event.composedPath() use closed-shadow-hidden when curre…
Browse files Browse the repository at this point in the history
…ntTarget is window

Fixes #326.
  • Loading branch information
hayatoito committed Sep 13, 2016
1 parent c46a4ad commit 4e5a24d
Show file tree
Hide file tree
Showing 2 changed files with 273 additions and 250 deletions.
15 changes: 12 additions & 3 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -744,10 +744,19 @@ steps:

<li>
<p>For each <var>tuple</var> in <a>context object</a>'s <a for=Event>path</a>:
<ol>
<li>
<p>If <var>currentTarget</var> is a {{Window}} object, then:

<ol><li><p>If <var>currentTarget</var> is a <a>node</a> and <var>tuple</var>'s <b>item</b> is not
<a>closed-shadow-hidden</a> from <var>currentTarget</var>, or <var>currentTarget</var> is not a
<a>node</a>, then append <var>tuple</var>'s <b>item</b> to <var>composedPath</var>.</p></li></ol>
<ol><li><p>If <var>tuple</var>'s <b>item</b> is not a <a>node</a>, or <var>tuple</var>'s
<b>item</b> is not <a>closed-shadow-hidden</a> from <var>tuple</var>'s <b>item</b>'s
<a>shadow-including root</a>, then append <var>tuple</var>'s <b>item</b> to
<var>composedPath</var>.</p></li></ol>

<li><p>Otherwise if <var>currentTarget</var> is a <a>node</a> and <var>tuple</var>'s <b>item</b>
is not <a>closed-shadow-hidden</a> from <var>currentTarget</var>, or <var>currentTarget</var> is
not a <a>node</a>, then append <var>tuple</var>'s <b>item</b> to <var>composedPath</var>.
</ol>

<li><p>Return <var>composedPath</var>.
</ol>
Expand Down
Loading

0 comments on commit 4e5a24d

Please sign in to comment.