From a6c6d984e756ad099624350f62c97ab902956cce Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Fri, 20 Sep 2019 13:20:19 +0900 Subject: [PATCH] Define the onslotchange event handler IDL attribute This introduces it to ShadowRoot in addition to GlobalEventHandlers, as a counterpart to https://github.com/whatwg/html/pull/4129. Closes https://github.com/whatwg/html/issues/3487. --- dom.bs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dom.bs b/dom.bs index 4064c3fd3..b94175680 100644 --- a/dom.bs +++ b/dom.bs @@ -3327,7 +3327,7 @@ run these steps:
  • For each slot of signalSet, fire an event - named slotchange, with its {{Event/bubbles}} attribute set to true, at + named {{HTMLSlotElement/slotchange}}, with its {{Event/bubbles}} attribute set to true, at slot. @@ -5752,6 +5752,7 @@ invoked, must return a new {{DocumentFragment}} node whose no interface ShadowRoot : DocumentFragment { readonly attribute ShadowRootMode mode; readonly attribute Element host; + attribute EventHandler onslotchange; }; enum ShadowRootMode { "open", "closed" }; @@ -5779,6 +5780,11 @@ null if event's composed flag is unset and shadow roo

    The host attribute's getter must return the context object's host. +

    The onslotchange attribute is an +event handler IDL attribute for the +onslotchange event handler, whose +event handler event type is {{HTMLSlotElement/slotchange}}. +


    In shadow-including tree order, is