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.

Yes but that would result in a `TypeError` whereas WebKit/Chromium/Gecko (at last) throw `NotSupportedError`.
http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=4078

I suppose `TypeError` is Web compatible enough but are implementors OK with changing to `TypeError`?

---
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#r60075770

Received on Monday, 18 April 2016 15:10:17 UTC