Re: [whatwg/dom] Shadow: define composedPath() (#247)

> @@ -733,6 +739,25 @@ attributes must return the values they were initialized to. When an
>  <a>event</a> is created the attributes must be
>  initialized to null.
>  
> +<p>The <dfn method for=Event><code>composedPath()</code></dfn> method, when invoked, must run these
> +steps:
> +
> +<ol>
> + <li><p>Let <var>composedPath</var> be a new empty list.
> +
> + <li><p>Let <var>currentTarget</var> be <a>context object</a>'s <code for=Event>currentTarget</code>
> + attribute value.
> +
> + <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 an
> +  <a>unclosed node</a> of <var>currentTarget</var>, or <var>currentTarget</var> is <em>not</em> a
> +  <a>node</a>, then append <var>tuple</var>'s <b>item</b> to <var>composedPath</var>.</p></li></ol>

Hit regions will change to only be nodes. I don't think there's any other such feature. That is why I reopened that bug you raised and said that we could simplify this.

---
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/247/files/ee90f5b11e586beb2fa3b06bee9b54ffb81bf072#r62796361

Received on Wednesday, 11 May 2016 06:18:00 UTC