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

Browsers typically disable touch events on non-touch devices, and
there exists Web content that detects this difference using
createEvent.

----

Also see https://github.com/w3c/touch-events/issues/64 for a possible spec hook for this.

I'm not sure about the wording, happy to tweak it.

I updated bikeshed and got some unrelated differences in the output, FYI.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/dom/pull/230

-- Commit Summary --

  * Fix #227: Make createEvent("touchevent") sometimes throw

-- File Changes --

    M dom.bs (7)
    M dom.html (22)

-- Patch Links --

https://github.com/whatwg/dom/pull/230.patch
https://github.com/whatwg/dom/pull/230.diff

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

Received on Monday, 18 April 2016 14:36:32 UTC