From 856a46a0e383cd66ab92d300a039db316b2a475a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Wed, 8 Sep 2021 14:09:29 +0200 Subject: [PATCH] Remove KeyboardEvent.which and MouseEvent.which (#12185) UIEvent.which is already in the data, so update that to reflect the partial support from when `which` was on KeyboardEvent and MouseEvent. The existing data from MouseEvent is not perfectly preserved, in particular the early Opera and Safari versions have not been verified, so instead ranges are used in the merged data. --- api/KeyboardEvent.json | 51 --------------------------------------- api/MouseEvent.json | 50 -------------------------------------- api/UIEvent.json | 55 ++++++++++++++++++++++++++++++++---------- 3 files changed, 42 insertions(+), 114 deletions(-) diff --git a/api/KeyboardEvent.json b/api/KeyboardEvent.json index bd2202925af8f4..66f3cbbce54ada 100644 --- a/api/KeyboardEvent.json +++ b/api/KeyboardEvent.json @@ -1706,57 +1706,6 @@ "deprecated": false } } - }, - "which": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/API/KeyboardEvent/which", - "spec_url": "https://w3c.github.io/uievents/#dom-uievent-which", - "support": { - "chrome": { - "version_added": "1" - }, - "chrome_android": { - "version_added": "18" - }, - "edge": { - "version_added": "12" - }, - "firefox": { - "version_added": "1.5", - "notes": "Firefox also implements this property on the UIEvent interface." - }, - "firefox_android": { - "version_added": "4", - "notes": "Firefox also implements this property on the UIEvent interface." - }, - "ie": { - "version_added": "9" - }, - "opera": { - "version_added": "12.1" - }, - "opera_android": { - "version_added": "12.1" - }, - "safari": { - "version_added": "≤4" - }, - "safari_ios": { - "version_added": "≤3" - }, - "samsunginternet_android": { - "version_added": "1.0" - }, - "webview_android": { - "version_added": "≤37" - } - }, - "status": { - "experimental": false, - "standard_track": false, - "deprecated": true - } - } } } } diff --git a/api/MouseEvent.json b/api/MouseEvent.json index 3e7a4504a7d8a3..62780035a7845a 100644 --- a/api/MouseEvent.json +++ b/api/MouseEvent.json @@ -1297,56 +1297,6 @@ } } }, - "which": { - "__compat": { - "mdn_url": "https://developer.mozilla.org/docs/Web/API/MouseEvent/which", - "support": { - "chrome": { - "version_added": "1" - }, - "chrome_android": { - "version_added": "18" - }, - "edge": { - "version_added": "12" - }, - "firefox": { - "version_added": "1", - "notes": "On mousemove events, the which property is incorrectly always set to 1." - }, - "firefox_android": { - "version_added": "4", - "notes": "On mousemove events, the which property is incorrectly always set to 1." - }, - "ie": { - "version_added": "9" - }, - "opera": { - "version_added": "10.6" - }, - "opera_android": { - "version_added": "11" - }, - "safari": { - "version_added": "3.1" - }, - "safari_ios": { - "version_added": "2" - }, - "samsunginternet_android": { - "version_added": "1.0" - }, - "webview_android": { - "version_added": "≤37" - } - }, - "status": { - "experimental": false, - "standard_track": false, - "deprecated": false - } - } - }, "x": { "__compat": { "mdn_url": "https://developer.mozilla.org/docs/Web/API/MouseEvent/x", diff --git a/api/UIEvent.json b/api/UIEvent.json index dc94f6ff23ec47..111886dce5d6af 100644 --- a/api/UIEvent.json +++ b/api/UIEvent.json @@ -407,6 +407,7 @@ "which": { "__compat": { "mdn_url": "https://developer.mozilla.org/docs/Web/API/UIEvent/which", + "spec_url": "https://w3c.github.io/uievents/#dom-uievent-which", "support": { "chrome": { "version_added": "1" @@ -414,24 +415,52 @@ "chrome_android": { "version_added": "18" }, - "edge": { - "version_added": "79" - }, + "edge": [ + { + "version_added": "79" + }, + { + "version_added": "12", + "version_removed": "79", + "partial_implementation": true, + "notes": "Only supported for KeyboardEvent and MouseEvent, not all UIEvent objects." + } + ], "firefox": { - "version_added": "1" + "version_added": "1", + "notes": "On mousemove events, the which property is incorrectly always set to 1." }, "firefox_android": { - "version_added": "4" + "version_added": "4", + "notes": "On mousemove events, the which property is incorrectly always set to 1." }, "ie": { - "version_added": false - }, - "opera": { - "version_added": "15" - }, - "opera_android": { - "version_added": "14" - }, + "version_added": "9", + "partial_implementation": true, + "notes": "Only supported for KeyboardEvent and MouseEvent, not all UIEvent objects." + }, + "opera": [ + { + "version_added": "15" + }, + { + "version_added": "≤12.1", + "version_removed": "15", + "partial_implementation": true, + "notes": "Only supported for KeyboardEvent and MouseEvent, not all UIEvent objects." + } + ], + "opera_android": [ + { + "version_added": "14" + }, + { + "version_added": "≤12.1", + "version_removed": "14", + "partial_implementation": true, + "notes": "Only supported for KeyboardEvent and MouseEvent, not all UIEvent objects." + } + ], "safari": { "version_added": "≤4" },