Skip to content

Commit

Permalink
XHR API: Single event entries (#13799)
Browse files Browse the repository at this point in the history
* XHR API: Single event entries / remmove XMLHttpRequestEventTarget

* Fix URLs

* fix sorting

* Consistency fixes

* Fix failure
  • Loading branch information
Elchi3 authored Feb 11, 2022
1 parent 60f46d4 commit 6352c4c
Show file tree
Hide file tree
Showing 3 changed files with 451 additions and 398 deletions.
135 changes: 80 additions & 55 deletions api/XMLHttpRequest.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@
"__compat": {
"description": "<code>abort</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort_event",
"spec_url": "https://xhr.spec.whatwg.org/#event-xhr-abort",
"spec_url": [
"https://xhr.spec.whatwg.org/#event-xhr-abort",
"https://xhr.spec.whatwg.org/#handler-xhr-onabort"
],
"support": {
"chrome": {
"version_added": "1"
Expand Down Expand Up @@ -207,7 +210,10 @@
"__compat": {
"description": "<code>error</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event",
"spec_url": "https://xhr.spec.whatwg.org/#event-xhr-error",
"spec_url": [
"https://xhr.spec.whatwg.org/#event-xhr-error",
"https://xhr.spec.whatwg.org/#handler-xhr-onerror"
],
"support": {
"chrome": {
"version_added": "1"
Expand Down Expand Up @@ -407,7 +413,10 @@
"__compat": {
"description": "<code>load</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/load_event",
"spec_url": "https://xhr.spec.whatwg.org/#event-xhr-load",
"spec_url": [
"https://xhr.spec.whatwg.org/#event-xhr-load",
"https://xhr.spec.whatwg.org/#handler-xhr-onload"
],
"support": {
"chrome": {
"version_added": "1"
Expand All @@ -425,7 +434,7 @@
"version_added": "4"
},
"ie": {
"version_added": "10"
"version_added": "9"
},
"opera": {
"version_added": "≤12.1"
Expand Down Expand Up @@ -457,7 +466,10 @@
"__compat": {
"description": "<code>loadend</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/loadend_event",
"spec_url": "https://xhr.spec.whatwg.org/#event-xhr-loadend",
"spec_url": [
"https://xhr.spec.whatwg.org/#event-xhr-loadend",
"https://xhr.spec.whatwg.org/#handler-xhr-onloadend"
],
"support": {
"chrome": {
"version_added": "18"
Expand Down Expand Up @@ -493,7 +505,7 @@
"version_added": "1.0"
},
"webview_android": {
"version_added": "≤37"
"version_added": "4.4"
}
},
"status": {
Expand All @@ -507,7 +519,10 @@
"__compat": {
"description": "<code>loadstart</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/loadstart_event",
"spec_url": "https://xhr.spec.whatwg.org/#event-xhr-loadstart",
"spec_url": [
"https://xhr.spec.whatwg.org/#event-xhr-loadstart",
"https://xhr.spec.whatwg.org/#handler-xhr-onloadstart"
],
"support": {
"chrome": {
"version_added": "1"
Expand Down Expand Up @@ -553,10 +568,10 @@
}
}
},
"onreadystatechange": {
"open": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/onreadystatechange",
"spec_url": "https://xhr.spec.whatwg.org/#handler-xhr-onreadystatechange",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open",
"spec_url": "https://xhr.spec.whatwg.org/#the-open()-method",
"support": {
"chrome": {
"version_added": "1"
Expand All @@ -568,16 +583,18 @@
"version_added": "12"
},
"firefox": {
"version_added": "1"
"version_added": "1",
"notes": "Starting in Firefox 30, synchronous requests on the main thread have been deprecated due to their negative impact on performance and the user experience. Therefore, the <code>async</code> parameter may not be <code>false</code> except in a <code>Worker</code>."
},
"firefox_android": {
"version_added": "4"
"version_added": "4",
"notes": "Starting in Firefox 30, synchronous requests on the main thread have been deprecated due to their negative impact on performance and the user experience. Therefore, the <code>async</code> parameter may not be <code>false</code> except in a <code>Worker</code>."
},
"ie": {
"version_added": "5"
},
"opera": {
"version_added": "9"
"version_added": "8"
},
"opera_android": {
"version_added": "10.1"
Expand All @@ -602,10 +619,10 @@
}
}
},
"open": {
"overrideMimeType": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open",
"spec_url": "https://xhr.spec.whatwg.org/#the-open()-method",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType",
"spec_url": "https://xhr.spec.whatwg.org/#the-overridemimetype()-method",
"support": {
"chrome": {
"version_added": "1"
Expand All @@ -617,21 +634,25 @@
"version_added": "12"
},
"firefox": {
"version_added": "1",
"notes": "Starting in Firefox 30, synchronous requests on the main thread have been deprecated due to their negative impact on performance and the user experience. Therefore, the <code>async</code> parameter may not be <code>false</code> except in a <code>Worker</code>."
"version_added": "1"
},
"firefox_android": {
"version_added": "4",
"notes": "Starting in Firefox 30, synchronous requests on the main thread have been deprecated due to their negative impact on performance and the user experience. Therefore, the <code>async</code> parameter may not be <code>false</code> except in a <code>Worker</code>."
},
"ie": {
"version_added": "5"
"version_added": "4"
},
"ie": [
{
"version_added": "11"
},
{
"version_added": "5",
"notes": "Implemented via <code>ActiveXObject</code>"
}
],
"opera": {
"version_added": "8"
"version_added": "≤12.1"
},
"opera_android": {
"version_added": "10.1"
"version_added": "≤12.1"
},
"safari": {
"version_added": "1.2"
Expand All @@ -653,10 +674,14 @@
}
}
},
"overrideMimeType": {
"progress_event": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType",
"spec_url": "https://xhr.spec.whatwg.org/#the-overridemimetype()-method",
"description": "<code>progress</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/progress_event",
"spec_url": [
"https://xhr.spec.whatwg.org/#event-xhr-progress",
"https://xhr.spec.whatwg.org/#handler-xhr-onprogress"
],
"support": {
"chrome": {
"version_added": "1"
Expand All @@ -673,23 +698,17 @@
"firefox_android": {
"version_added": "4"
},
"ie": [
{
"version_added": "11"
},
{
"version_added": "5",
"notes": "Implemented via <code>ActiveXObject</code>"
}
],
"ie": {
"version_added": "10"
},
"opera": {
"version_added": "≤12.1"
},
"opera_android": {
"version_added": "≤12.1"
},
"safari": {
"version_added": "1.2"
"version_added": "3"
},
"safari_ios": {
"version_added": "1"
Expand All @@ -698,7 +717,7 @@
"version_added": "1.0"
},
"webview_android": {
"version_added": "1"
"version_added": "≤37"
}
},
"status": {
Expand All @@ -708,11 +727,10 @@
}
}
},
"progress_event": {
"readyState": {
"__compat": {
"description": "<code>progress</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/progress_event",
"spec_url": "https://xhr.spec.whatwg.org/#event-xhr-progress",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState",
"spec_url": "https://xhr.spec.whatwg.org/#states",
"support": {
"chrome": {
"version_added": "1"
Expand All @@ -730,16 +748,16 @@
"version_added": "4"
},
"ie": {
"version_added": "10"
"version_added": "7"
},
"opera": {
"version_added": "≤12.1"
"version_added": "8"
},
"opera_android": {
"version_added": "≤12.1"
"version_added": "10.1"
},
"safari": {
"version_added": "3"
"version_added": "1.2"
},
"safari_ios": {
"version_added": "1"
Expand All @@ -748,7 +766,7 @@
"version_added": "1.0"
},
"webview_android": {
"version_added": "≤37"
"version_added": "1"
}
},
"status": {
Expand All @@ -758,10 +776,14 @@
}
}
},
"readyState": {
"readystatechange_event": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState",
"spec_url": "https://xhr.spec.whatwg.org/#states",
"description": "<code>readystatechange</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event",
"spec_url": [
"https://xhr.spec.whatwg.org/#event-xhr-readystatechange",
"https://xhr.spec.whatwg.org/#handler-xhr-onreadystatechange"
],
"support": {
"chrome": {
"version_added": "1"
Expand All @@ -779,10 +801,10 @@
"version_added": "4"
},
"ie": {
"version_added": "7"
"version_added": "5"
},
"opera": {
"version_added": "8"
"version_added": "9"
},
"opera_android": {
"version_added": "10.1"
Expand Down Expand Up @@ -1831,7 +1853,10 @@
"__compat": {
"description": "<code>timeout</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout_event",
"spec_url": "https://xhr.spec.whatwg.org/#event-xhr-timeout",
"spec_url": [
"https://xhr.spec.whatwg.org/#event-xhr-timeout",
"https://xhr.spec.whatwg.org/#handler-xhr-ontimeout"
],
"support": {
"chrome": {
"version_added": "29"
Expand Down Expand Up @@ -1867,7 +1892,7 @@
"version_added": "1.0"
},
"webview_android": {
"version_added": "≤37"
"version_added": "4.4"
}
},
"status": {
Expand Down
Loading

0 comments on commit 6352c4c

Please sign in to comment.