Re: [dom] Issue #156. Add legacy event type check to invoke algorithm. (#158)

> @@ -1217,7 +1217,32 @@ for discussion).
>     <a>invoke</a> algorithm.
>  
>     <li><p>If <var>event</var>'s {{Event/type}} attribute value is not <var>listener</var>'s
> -   <b>type</b>, terminate these substeps (and run them for the next <a>event listener</a>).
> +   <b>type</b>, check for a legacy type attribute match by running these substeps:
> +
> +   <ol>
> +    <li><p>If <var>event</var>'s {{Event/type}} attribute value is "animationend":
> +    <ol>
> +     <li><p>Let <var>original event type</var> be "animationend".

Introducing a variable in substeps seems suspect with respect to scoping. Best to introduce it earlier and just set it here.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/158/files#r52137209

Received on Monday, 8 February 2016 06:58:40 UTC