Skip to content

Commit

Permalink
Demix slotchange from GlobalEventHandlers (mdn#18225)
Browse files Browse the repository at this point in the history
  • Loading branch information
queengooborg authored Jul 18, 2022
1 parent fd9ca3c commit b5503b2
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 67 deletions.
1 change: 1 addition & 0 deletions files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8194,6 +8194,7 @@
/en-US/docs/Web/API/GlobalEventHandlers/onselect /en-US/docs/Web/API/HTMLInputElement/select_event
/en-US/docs/Web/API/GlobalEventHandlers/onselectionchange /en-US/docs/Web/API/HTMLInputElement/selectionchange_event
/en-US/docs/Web/API/GlobalEventHandlers/onselectstart /en-US/docs/Web/API/Document/selectstart_event
/en-US/docs/Web/API/GlobalEventHandlers/onslotchange /en-US/docs/Web/API/HTMLSlotElement/slotchange_event
/en-US/docs/Web/API/GlobalEventHandlers/onsubmit /en-US/docs/Web/API/HTMLFormElement/submit_event
/en-US/docs/Web/API/GlobalEventHandlers/ontouchcancel /en-US/docs/Web/API/Element/touchcancel_event
/en-US/docs/Web/API/GlobalEventHandlers/ontouchend /en-US/docs/Web/API/Element/touchend_event
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/mozilla/firefox/releases/93/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ This article provides information about the changes in Firefox 93 that will affe

- The {{domxref("Element.securitypolicyviolation_event","onsecuritypolicyviolation")}} global event handler property is now supported.
This can be used to assign a handler for processing [`securitypolicyviolation`](/en-US/docs/Web/API/Element/securitypolicyviolation_event) events fired when there is a [Content Security Policy](/en-US/docs/Web/HTTP/CSP) violation ({{bug(1727302)}}).
- The `onslotchange` event handler property is now supported on {{domxref("GlobalEventHandlers.onslotchange","GlobalEventHandlers")}} and {{domxref("ShadowRoot.onslotchange","ShadowRoot")}}.
- The `onslotchange` event handler property is now supported on {{domxref("HTMLSlotElement.onslotchange","HTMLSlotElement")}} and {{domxref("ShadowRoot.onslotchange","ShadowRoot")}}.
This can be used to assign a handler for processing [`slotchange`](/en-US/docs/Web/API/HTMLSlotElement/slotchange_event) events, which are fired on {{HTMLElement("slot")}} elements when the node(s) contained in the slot change ({{bug(1501983)}}).

#### Removals
Expand Down
4 changes: 1 addition & 3 deletions files/en-us/web/api/globaleventhandlers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ These event handlers are defined on the {{domxref("GlobalEventHandlers")}} mixin
- {{domxref("GlobalEventHandlers.onseeking")}}
- : An [event handler](/en-US/docs/Web/Events/Event_handlers) representing the code to be called when the {{event("seeking")}} event is raised.
- {{domxref("GlobalEventHandlers.onshow")}} {{Deprecated_Inline}}
- : An [event handler](/en-US/docs/Web/Events/Event_handlers) representing the code to be called when the {{domxref("Element/show_event", "show")}} event is raised.
- {{domxref("GlobalEventHandlers.onslotchange")}}
- : An [event handler](/en-US/docs/Web/Events/Event_handlers) representing the code to be called when the {{domxref("HTMLSlotElement/slotchange_event", "slotchange")}} event is raised.
- : An [event handler](/en-US/docs/Web/Events/Event_handlers) representing the code to be called when the {{event("show")}} event is raised.
- {{domxref("GlobalEventHandlers.onstalled")}}
- : An [event handler](/en-US/docs/Web/Events/Event_handlers) representing the code to be called when the {{domxref("HTMLMediaElement/stalled_event", "stalled")}} event is raised.
- {{domxref("GlobalEventHandlers.onsuspend")}}
Expand Down
62 changes: 0 additions & 62 deletions files/en-us/web/api/globaleventhandlers/onslotchange/index.md

This file was deleted.

2 changes: 1 addition & 1 deletion files/en-us/web/api/shadowroot/onslotchange/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ this.shadowRoot.onslotchange = function(e) {
- [Using templates and slots](/en-US/docs/Web/Web_Components/Using_templates_and_slots)
- {{domxref("HTMLSlotElement/slotchange_event", "slotchange")}} event
- {{domxref("HTMLSlotElement")}}
- {{domxref("GlobalEventHandlers.onslotchange")}}
- {{domxref("HTMLSlotElement.onslotchange")}}

0 comments on commit b5503b2

Please sign in to comment.