Skip to content

Commit

Permalink
Adapt selectstart/selectionchange events to new event structure
Browse files Browse the repository at this point in the history
Part of mdn#7545.
  • Loading branch information
foolip committed May 19, 2022
1 parent 1e24e16 commit 36770ab
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 165 deletions.
55 changes: 4 additions & 51 deletions api/Document.json
Original file line number Diff line number Diff line change
Expand Up @@ -9437,7 +9437,10 @@
"selectionchange_event": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event",
"spec_url": "https://w3c.github.io/selection-api/#selectionchange-event",
"spec_url": [
"https://w3c.github.io/selection-api/#selectionchange-event",
"https://w3c.github.io/selection-api/#dom-globaleventhandlers-onselectionchange"
],
"description": "<code>selectionchange</code> event",
"support": {
"chrome": {
Expand Down Expand Up @@ -9484,56 +9487,6 @@
}
}
},
"selectstart_event": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/selectstart_event",
"spec_url": "https://w3c.github.io/selection-api/#selectstart-event",
"description": "<code>selectstart</code> event",
"support": {
"chrome": {
"version_added": "1"
},
"chrome_android": {
"version_added": "18"
},
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "52"
},
"firefox_android": {
"version_added": "52"
},
"ie": {
"version_added": "4"
},
"opera": {
"version_added": "15"
},
"opera_android": {
"version_added": "14"
},
"safari": {
"version_added": "1.3"
},
"safari_ios": {
"version_added": false
},
"samsunginternet_android": {
"version_added": "1.0"
},
"webview_android": {
"version_added": "1"
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"styleSheetSets": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/styleSheetSets",
Expand Down
100 changes: 0 additions & 100 deletions api/GlobalEventHandlers.json
Original file line number Diff line number Diff line change
Expand Up @@ -4035,106 +4035,6 @@
}
}
},
"onselectionchange": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/GlobalEventHandlers/onselectionchange",
"spec_url": "https://w3c.github.io/selection-api/#dom-globaleventhandlers-onselectionchange",
"support": {
"chrome": {
"version_added": "11"
},
"chrome_android": {
"version_added": "18"
},
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "52"
},
"firefox_android": {
"version_added": "52"
},
"ie": {
"version_added": "5.5"
},
"opera": {
"version_added": "15"
},
"opera_android": {
"version_added": "14"
},
"safari": {
"version_added": "5.1"
},
"safari_ios": {
"version_added": "5"
},
"samsunginternet_android": {
"version_added": "1.0"
},
"webview_android": {
"version_added": "≤37"
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"onselectstart": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/GlobalEventHandlers/onselectstart",
"spec_url": "https://w3c.github.io/selection-api/#dom-globaleventhandlers-onselectstart",
"support": {
"chrome": {
"version_added": "1"
},
"chrome_android": {
"version_added": "18"
},
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "52"
},
"firefox_android": {
"version_added": "52"
},
"ie": {
"version_added": "4"
},
"opera": {
"version_added": "15"
},
"opera_android": {
"version_added": "14"
},
"safari": {
"version_added": "1.3"
},
"safari_ios": {
"version_added": "1",
"partial_implementation": true,
"notes": "The <code>selectstart</code> event never fires and never invokes this handler."
},
"samsunginternet_android": {
"version_added": "1.0"
},
"webview_android": {
"version_added": "1"
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"onshow": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/GlobalEventHandlers/onshow",
Expand Down
17 changes: 12 additions & 5 deletions api/HTMLInputElement.json
Original file line number Diff line number Diff line change
Expand Up @@ -1810,14 +1810,19 @@
"selectionchange_event": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionchange_event",
"spec_url": "https://w3c.github.io/selection-api/#selectionchange-event",
"spec_url": [
"https://w3c.github.io/selection-api/#selectionchange-event",
"https://w3c.github.io/selection-api/#dom-globaleventhandlers-onselectionchange"
],
"description": "<code>selectionchange</code> event",
"support": {
"chrome": {
"version_added": false
"version_added": false,
"notes": "See <a href='https://crbug.com/1327098'>bug 1327098</a>."
},
"chrome_android": {
"version_added": false
"version_added": false,
"notes": "See <a href='https://crbug.com/1327098'>bug 1327098</a>."
},
"edge": {
"version_added": false
Expand All @@ -1838,10 +1843,12 @@
"version_added": false
},
"safari": {
"version_added": false
"version_added": false,
"notes": "See <a href='https://webkit.org/b/234348'>bug 234348</a>."
},
"safari_ios": {
"version_added": false
"version_added": false,
"notes": "See <a href='https://webkit.org/b/234348'>bug 234348</a>."
},
"samsunginternet_android": {
"version_added": false
Expand Down
17 changes: 12 additions & 5 deletions api/HTMLTextAreaElement.json
Original file line number Diff line number Diff line change
Expand Up @@ -902,14 +902,19 @@
"selectionchange_event": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionchange_event",
"spec_url": "https://w3c.github.io/selection-api/#selectionchange-event",
"spec_url": [
"https://w3c.github.io/selection-api/#selectionchange-event",
"https://w3c.github.io/selection-api/#dom-globaleventhandlers-onselectionchange"
],
"description": "<code>selectionchange</code> event",
"support": {
"chrome": {
"version_added": false
"version_added": false,
"notes": "See <a href='https://crbug.com/1327098'>bug 1327098</a>."
},
"chrome_android": {
"version_added": false
"version_added": false,
"notes": "See <a href='https://crbug.com/1327098'>bug 1327098</a>."
},
"edge": {
"version_added": false
Expand All @@ -930,10 +935,12 @@
"version_added": false
},
"safari": {
"version_added": false
"version_added": false,
"notes": "See <a href='https://webkit.org/b/234348'>bug 234348</a>."
},
"safari_ios": {
"version_added": false
"version_added": false,
"notes": "See <a href='https://webkit.org/b/234348'>bug 234348</a>."
},
"samsunginternet_android": {
"version_added": false
Expand Down
53 changes: 53 additions & 0 deletions api/Node.json
Original file line number Diff line number Diff line change
Expand Up @@ -1571,6 +1571,59 @@
}
}
},
"selectstart_event": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Node/selectstart_event",
"spec_url": [
"https://w3c.github.io/selection-api/#selectstart-event",
"https://w3c.github.io/selection-api/#dom-globaleventhandlers-onselectstart"
],
"description": "<code>selectstart</code> event",
"support": {
"chrome": {
"version_added": "1"
},
"chrome_android": {
"version_added": "18"
},
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "52"
},
"firefox_android": {
"version_added": "52"
},
"ie": {
"version_added": "5"
},
"opera": {
"version_added": "15"
},
"opera_android": {
"version_added": "14"
},
"safari": {
"version_added": "1.3"
},
"safari_ios": {
"version_added": false
},
"samsunginternet_android": {
"version_added": "1.0"
},
"webview_android": {
"version_added": "1"
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"textContent": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Node/textContent",
Expand Down
6 changes: 2 additions & 4 deletions api/Selection.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@
"version_added": "12"
},
"firefox": {
"version_added": "1",
"notes": "The <a href='https://developer.mozilla.org/docs/Web/API/GlobalEventHandlers/onselectionchange'><code>GlobalEventHandlers.onselectionchange</code></a> and <a href='https://developer.mozilla.org/docs/Web/API/GlobalEventHandlers/onselectstart'><code>GlobalEventHandlers.onselectstart</code></a> event handlers are supported as of Firefox 52."
"version_added": "1"
},
"firefox_android": {
"version_added": "4",
"notes": "The <a href='https://developer.mozilla.org/docs/Web/API/GlobalEventHandlers/onselectionchange'><code>GlobalEventHandlers.onselectionchange</code></a> and <a href='https://developer.mozilla.org/docs/Web/API/GlobalEventHandlers/onselectstart'><code>GlobalEventHandlers.onselectstart</code></a> event handlers are supported as of Firefox 52."
"version_added": "4"
},
"ie": {
"version_added": "9"
Expand Down

0 comments on commit 36770ab

Please sign in to comment.