Re: [whatwg/dom] Shadow: Make Event.composedPath() use closed-shadow-hidden when currentTarget is window (#327)

> @@ -744,11 +744,16 @@ 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 <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>currentTarget</var> is a {{Window}}, then:
> +    <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>node
> +    document</a>, then append <var>tuple</var>'s <b>item</b> to <var>composedPath</var>.</ol>

You are correct! I forgot that we can use `shadow-including root` here.

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

Received on Tuesday, 13 September 2016 09:30:50 UTC