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

OK.

If WebKit is unable to change this, the spec can document this lack of interop through the [navigator compatibility mode](https://html.spec.whatwg.org/multipage/system-state.html#concept-navigator-compatibility-mode).

I ran a query on the 10k sample mobile pages in httparchive for pages containing "window.TouchEvent". There were 163 matches. I haven't looked at them, but you could look for evidence that there are web pages that would break in desktop Safari (or macOS Firefox) before trying to ship the suggested change.

https://docs.google.com/spreadsheets/d/1G3qs7i6V2E5NWVPHZY5E1GAHFYwo1frDxoLhqaYIQrU/edit#gid=752407919

<details>
<summary>Query</summary>

```
SELECT * FROM (
SELECT
  page,
  url,
  REGEXP_EXTRACT(body, r'(\bwindow\.TouchEvent\b)') AS match
FROM
  `httparchive.sample_data.response_bodies_mobile_10k`
) WHERE match IS NOT NULL
```
</details>

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/952#issuecomment-1148501718
You are receiving this because you are subscribed to this thread.

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

Received on Tuesday, 7 June 2022 10:46:04 UTC