Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combine docs for selection events under GlobalEventHandlers #15385

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7845,10 +7845,12 @@
/en-US/docs/Web/API/Document/onresize /en-US/docs/Web/API/GlobalEventHandlers/onresize
/en-US/docs/Web/API/Document/onscroll /en-US/docs/Web/API/GlobalEventHandlers/onscroll
/en-US/docs/Web/API/Document/onselect /en-US/docs/Web/API/GlobalEventHandlers/onselect
/en-US/docs/Web/API/Document/onselectionchange /en-US/docs/Web/API/GlobalEventHandlers/onselectionchange
/en-US/docs/Web/API/Document/onselectionchange /en-US/docs/Web/API/GlobalEventHandlers/selectionchange_event
/en-US/docs/Web/API/Document/onsubmit /en-US/docs/Web/API/GlobalEventHandlers/onsubmit
/en-US/docs/Web/API/Document/onvisibilitychange /en-US/docs/Web/API/Document/visibilitychange_event
/en-US/docs/Web/API/Document/resourcetimingbufferfull_event /en-US/docs/Web/API/Performance/resourcetimingbufferfull_event
/en-US/docs/Web/API/Document/selectionchange_event /en-US/docs/Web/API/GlobalEventHandlers/selectionchange_event
/en-US/docs/Web/API/Document/selectstart_event /en-US/docs/Web/API/GlobalEventHandlers/selectstart_event
/en-US/docs/Web/API/Document/timeline/currentTime /en-US/docs/Web/API/AnimationTimeline/currentTime
/en-US/docs/Web/API/DocumentFragment.DocumentFragment /en-US/docs/Web/API/DocumentFragment/DocumentFragment
/en-US/docs/Web/API/DocumentFragment.querySelector /en-US/docs/Web/API/DocumentFragment/querySelector
Expand Down Expand Up @@ -8135,6 +8137,8 @@
/en-US/docs/Web/API/GlobalEventHandlers/onmozfullscreenchange /en-US/docs/Web/API/Document/fullscreenchange_event
/en-US/docs/Web/API/GlobalEventHandlers/onmozfullscreenerror /en-US/docs/Web/API/Document/fullscreenerror_event
/en-US/docs/Web/API/GlobalEventHandlers/onpointerdown/drag /en-US/docs/Web/API/GlobalEventHandlers/ondrag
/en-US/docs/Web/API/GlobalEventHandlers/onselectionchange /en-US/docs/Web/API/GlobalEventHandlers/selectionchange_event
/en-US/docs/Web/API/GlobalEventHandlers/onselectstart /en-US/docs/Web/API/GlobalEventHandlers/selectstart_event
/en-US/docs/Web/API/GlobalFetch/GlobalFetch.fetch() /en-US/docs/Web/API/fetch
/en-US/docs/Web/API/GlobalFetch/fetch /en-US/docs/Web/API/fetch
/en-US/docs/Web/API/Guide/Events/Creating_and_triggering_events /en-US/docs/Web/Events/Creating_and_triggering_events
Expand Down Expand Up @@ -8265,6 +8269,7 @@
/en-US/docs/Web/API/HTMLInputElement/change_event /en-US/docs/Web/API/HTMLElement/change_event
/en-US/docs/Web/API/HTMLInputElement/click /en-US/docs/Web/API/HTMLElement/click
/en-US/docs/Web/API/HTMLInputElement/mozSetFileNameArray /en-US/docs/Web/API/HTMLInputElement
/en-US/docs/Web/API/HTMLInputElement/selectionchange_event /en-US/docs/Web/API/GlobalEventHandlers/selectionchange_event
/en-US/docs/Web/API/HTMLInputElement/stepUp() /en-US/docs/Web/API/HTMLInputElement/stepUp
/en-US/docs/Web/API/HTMLLinkElement.rel /en-US/docs/Web/API/HTMLLinkElement/rel
/en-US/docs/Web/API/HTMLLinkElement.relList /en-US/docs/Web/API/HTMLLinkElement/relList
Expand Down Expand Up @@ -8322,6 +8327,7 @@
/en-US/docs/Web/API/HTMLTableRowElement.insertCell /en-US/docs/Web/API/HTMLTableRowElement/insertCell
/en-US/docs/Web/API/HTMLTableRowElement.rowIndex /en-US/docs/Web/API/HTMLTableRowElement/rowIndex
/en-US/docs/Web/API/HTMLTemplateElement/HTMLTemplateElement.content /en-US/docs/Web/API/HTMLTemplateElement/content
/en-US/docs/Web/API/HTMLTextAreaElement/selectionchange_event /en-US/docs/Web/API/GlobalEventHandlers/selectionchange_event
/en-US/docs/Web/API/HTMLTextAreaElement1 /en-US/docs/Web/API/HTMLTextAreaElement
/en-US/docs/Web/API/HTMLTimeElement.dateTime /en-US/docs/Web/API/HTMLTimeElement/dateTime
/en-US/docs/Web/API/HTMLVideoElement.getVideoPlaybackQuality /en-US/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality
Expand Down Expand Up @@ -11331,8 +11337,8 @@
/en-US/docs/Web/Events/seeking /en-US/docs/Web/API/HTMLMediaElement/seeking_event
/en-US/docs/Web/Events/select /en-US/docs/Web/API/Element/select_event
/en-US/docs/Web/Events/selectedcandidatepairchange /en-US/docs/Web/API/RTCIceTransport/selectedcandidatepairchange_event
/en-US/docs/Web/Events/selectionchange /en-US/docs/Web/API/Document/selectionchange_event
/en-US/docs/Web/Events/selectstart /en-US/docs/Web/API/Document/selectstart_event
/en-US/docs/Web/Events/selectionchange /en-US/docs/Web/API/GlobalEventHandlers/selectionchange_event
/en-US/docs/Web/Events/selectstart /en-US/docs/Web/API/GlobalEventHandlers/selectstart_event
/en-US/docs/Web/Events/shippingaddresschange /en-US/docs/Web/API/PaymentRequest/shippingaddresschange_event
/en-US/docs/Web/Events/shippingoptionchange /en-US/docs/Web/API/PaymentRequest/shippingoptionchange_event
/en-US/docs/Web/Events/show /en-US/docs/Web/API/Element/show_event
Expand Down
82 changes: 25 additions & 57 deletions files/en-us/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -36422,38 +36422,6 @@
"Sheppy"
]
},
"Web/API/Document/selectionchange_event": {
"modified": "2020-10-15T21:39:03.500Z",
"contributors": [
"mfuji09",
"Jonathan_Watt",
"Zhang-Junzhi",
"chrisdavidmills",
"irenesmith",
"mfluehr",
"erikadoyle",
"Ehsan",
"spencer-brown",
"Nickolay",
"teoli"
]
},
"Web/API/Document/selectstart_event": {
"modified": "2020-10-15T21:39:05.806Z",
"contributors": [
"mfuji09",
"wbamberg",
"chrisdavidmills",
"irenesmith",
"mfluehr",
"erikadoyle",
"Ehsan",
"wirmar",
"Nickolay",
"Sebastianz",
"teoli"
]
},
"Web/API/Document/styleSheetSets": {
"modified": "2020-12-11T06:37:41.616Z",
"contributors": [
Expand Down Expand Up @@ -45424,31 +45392,6 @@
"alecananian"
]
},
"Web/API/GlobalEventHandlers/onselectionchange": {
"modified": "2020-10-15T21:51:39.271Z",
"contributors": [
"nakhodkiin",
"mfluehr",
"fscholz",
"valtlai",
"chrisdavidmills"
]
},
"Web/API/GlobalEventHandlers/onselectstart": {
"modified": "2020-10-15T21:39:02.524Z",
"contributors": [
"kernp",
"mfluehr",
"fscholz",
"sideshowbarker",
"slayermass",
"valtlai",
"chrisdavidmills",
"jrmuizel",
"Konrud",
"teoli"
]
},
"Web/API/GlobalEventHandlers/onsubmit": {
"modified": "2020-10-15T21:06:50.687Z",
"contributors": [
Expand Down Expand Up @@ -45556,6 +45499,31 @@
"Masayuki"
]
},
"Web/API/GlobalEventHandlers/selectionchange_event": {
"modified": "2020-10-15T21:51:39.271Z",
"contributors": [
"nakhodkiin",
"mfluehr",
"fscholz",
"valtlai",
"chrisdavidmills"
]
},
"Web/API/GlobalEventHandlers/selectstart_event": {
"modified": "2020-10-15T21:39:02.524Z",
"contributors": [
"kernp",
"mfluehr",
"fscholz",
"sideshowbarker",
"slayermass",
"valtlai",
"chrisdavidmills",
"jrmuizel",
"Konrud",
"teoli"
]
},
"Web/API/Gyroscope": {
"modified": "2020-10-15T22:08:47.425Z",
"contributors": [
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/mozilla/firefox/releases/43/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ _No change._
- The Frame Timing API has been added: the {{domxref("PerformanceRenderTiming")}} and {{domxref("PerformanceCompositeTiming")}} interfaces are now available ({{bug(1191178)}}).
- The modern [Screen Orientation API](/en-US/docs/Web/API/Screen_Orientation_API) has been implemented: unprefixed {{domxref("Screen.orientation")}} and the {{domxref("ScreenOrientation")}} interface are now available ({{bug("1131470")}}). The non-standard {{domxref("Screen.mozOrientation")}}, {{domxref("Screen.onmozorientationchange")}}, {{domxref("Screen.mozLockOrientation()")}}, and {{domxref("Screen.mozUnlockOrientation()")}} will be removed in the future.
- Under Linux, like under Windows, {{domxref("Event.timeStamp")}} now returns a {{domxref("DOMHighResTimeStamp")}} ({{bug(1026803)}}).
- Experimental support for {{domxref("Selection")}} events {{event("selectionchange")}} and {{event("selectstart")}}, as well as the {{domxref("GlobalEventHandlers/onselectionchange", "Document.onselectionchange")}} and {{domxref("GlobalEventHandlers.onselectstart")}} event handlers property has been added ({{bug(571294)}}). The `selectionchange` event is fired on the {{domxref("Document")}} if the associated `Selection` object is concerned, or on the specific {{domxref("HTMLInputElement")}} or {{domxref("HTMLTextAreaElement")}} ({{bug(1196479)}}). This feature is controlled by the `dom.select_events.enabled` preference, that defaults to `false`, except on Nightly.
- Experimental support for {{domxref("Selection")}} events {{DOMxRef("GlobalEventHandlers/selectionchange_event", "selectionchange")}} and {{DOMxRef("GlobalEventHandlers/selectstart_event", "selectstart")}} has been added ({{bug(571294)}}). The `selectionchange` event is fired on the {{domxref("Document")}} if the associated `Selection` object is concerned, or on the specific {{domxref("HTMLInputElement")}} or {{domxref("HTMLTextAreaElement")}} ({{bug(1196479)}}). This feature is controlled by the `dom.select_events.enabled` preference, that defaults to `false`, except on Nightly.
- Support for {{domxref("MouseEvent.offsetX")}} and {{domxref("MouseEvent.offsetY")}} have been activated on Firefox for Android and Firefox OS ({{bug(1204841)}}).
- The {{domxref("HTMLCanvasElement.mozFetchAsStream()")}} method has been removed ({{bug(1206030)}}).
- The constructor {{domxref("Request.Request", "Request()")}} as well as {{domxref("fetch()")}} will now raise a {{exception("TypeError")}} exception when used with a URL containing a username and password ({{bug(1195820)}}).
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/mozilla/firefox/releases/52/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Firefox 52 was released on March 7, 2017. This article lists key changes that ar

### DOM

- The [Selection API](/en-US/docs/Web/API/Selection) has fully shipped, including the new {{Event("selectstart")}} and {{Event("selectionchange")}} events (see also {{domxref("GlobalEventHandlers.onselectstart")}} and {{domxref("GlobalEventHandlers.onselectionchange")}}) ({{bug(1309612)}}).
- The [Selection API](/en-US/docs/Web/API/Selection) has fully shipped, including the new {{DOMxRef("GlobalEventHandlers/selectstart_event", "selectstart")}} and {{DOMxRef("GlobalEventHandlers/selectionchange_event", "selectionchange")}} events ({{bug(1309612)}}).
- The property {{domxref("Event.composed")}} is now supported; this Boolean value indicates whether or not the event can bubble through the shadow root into the standard DOM ({{bug(1292063)}}).
- Only HTML elements, plus the {{HTMLElement("svg")}} and {{HTMLElement("math")}} elements, can be put into full-screen mode by calling {{domxref("Element.requestFullScreen()")}} ({{bug(1305928)}}).
- [Touch events](/en-US/docs/Web/API/Touch_events) have been reenabled on Windows desktop platforms — see {{bug(1244402)}}. (They were disabled in Firefox 24 because they broke a number of major sites; see {{bug(888304)}}.)
Expand Down
9 changes: 2 additions & 7 deletions files/en-us/web/api/document/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@ _The `Document` interface for HTML documents inherits from the {{DOMxRef("HTMLDo

_The `Document` interface is extended with additional event handlers defined in [GlobalEventHandlers](/en-US/docs/Web/API/GlobalEventHandlers#event_handlers)._

- {{DOMxRef("GlobalEventHandlers.onselectionchange")}} {{Experimental_Inline}}
- : Is an [event handler](/en-US/docs/Web/Events/Event_handlers) representing the code to be called when the {{domxref("Document/selectionchange_event", "selectionchange")}} event is raised.

### Deprecated properties

- {{DOMxRef("Document.alinkColor")}} {{Deprecated_Inline}}
Expand Down Expand Up @@ -439,12 +436,10 @@ Listen to these events using `addEventListener()` or by assigning an event liste

### Selection events

- {{DOMxRef("Document/selectionchange_event", "selectionchange")}}
- {{DOMxRef("GlobalEventHandlers/selectionchange_event", "selectionchange")}}
- : Fired when the current text selection on a document is changed.
Also available via the {{DOMxRef("GlobalEventHandlers/onselectionchange", "onselectionchange")}} property.
- {{DOMxRef("Document/selectstart_event", "selectstart")}}
- {{DOMxRef("GlobalEventHandlers/selectstart_event", "selectstart")}}
- : Fired when the user begins a new selection.
Also available via the {{DOMxRef("GlobalEventHandlers/onselectstart", "onselectstart")}} property.

### Touch events

Expand Down
71 changes: 0 additions & 71 deletions files/en-us/web/api/document/selectionchange_event/index.md

This file was deleted.

66 changes: 0 additions & 66 deletions files/en-us/web/api/document/selectstart_event/index.md

This file was deleted.

Loading