Re: [whatwg/dom] Fix #227: Make createEvent("touchevent") sometimes throw (#230)

> @@ -4982,6 +4982,13 @@ invoked, must run these steps:
>      <tr><td>"<code>wheelevent</code>"<td>{{WheelEvent}}<td>[[!UIEVENTS]]
>    </table>
>  
> + <li>
> +  If the user agent does not support the <var>constructor</var> interface, or has it disabled
> +  in its current configuration, let <var>constructor</var> be null.
> +
> +  <p class=note>Typically user agents have the {{TouchEvent}} interface disabled in some
> +  configurations.

I see. I think it would be better then to where we talk about the initial value of constructor we check for that being undefined and if it's undefined we throw a NotSupportedError and mention that this can be the case for TouchEvent in a note.

---
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/230/files/f28c8e844839be952e676aca84e29407a47ba692#r60083239

Received on Monday, 18 April 2016 15:50:59 UTC