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

Demix slotchange from GlobalEventHandlers #18225

Merged
merged 2 commits into from
Jul 18, 2022
Merged
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
1 change: 1 addition & 0 deletions files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8174,6 +8174,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("GlobalEventHandlers.onsecuritypolicyviolation","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 @@ -92,9 +92,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")}}