Re: [whatwg/dom] document.createEvent() should maybe not be conditional upon exposure (#952)

> Is there a recommendation here? Should we specify what Chromium does? It is evidently web compatible (at least for Chromium-based browsers) to expose `window.TouchEvent` always. It also seems more flexible since a desktop browser could have touch supported and web devs could still use touch events, only not the event handlers or `createEvent`.

It is evidently web compatible _at least for Chromium-based browsers_, yes. But there's historically been content that has relied on the presence of TouchEvent to distinguish mobile Safari from desktop Safari, so there is still web compat risk for Safari from that. (There's also—inevitably—some risk in shipping more code.)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/952#issuecomment-1147664436

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/952/1147664436@github.com>

Received on Monday, 6 June 2022 16:54:05 UTC