aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/shadowroot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/shadowroot.rs')
-rw-r--r--components/script/dom/shadowroot.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/shadowroot.rs b/components/script/dom/shadowroot.rs
index 46fcb38cf1b..872a3a461d5 100644
--- a/components/script/dom/shadowroot.rs
+++ b/components/script/dom/shadowroot.rs
@@ -325,6 +325,9 @@ impl ShadowRootMethods<crate::DomTypeHolder> for ShadowRoot {
fn SlotAssignment(&self) -> SlotAssignmentMode {
self.slot_assignment_mode
}
+
+ // https://dom.spec.whatwg.org/#dom-shadowroot-onslotchange
+ event_handler!(onslotchange, GetOnslotchange, SetOnslotchange);
}
impl VirtualMethods for ShadowRoot {