Skip to content

Commit a6c6d98

Browse files
domenicannevk
authored andcommitted
Define the onslotchange event handler IDL attribute
This introduces it to ShadowRoot in addition to GlobalEventHandlers, as a counterpart to whatwg/html#4129. Closes whatwg/html#3487.
1 parent e017c7a commit a6c6d98

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dom.bs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3327,7 +3327,7 @@ run these steps:
33273327
</ol>
33283328

33293329
<li><p><a for=set>For each</a> <var>slot</var> of <var>signalSet</var>, <a>fire an event</a>
3330-
named <code>slotchange</code>, with its {{Event/bubbles}} attribute set to true, at
3330+
named {{HTMLSlotElement/slotchange}}, with its {{Event/bubbles}} attribute set to true, at
33313331
<var>slot</var>.
33323332
</ol>
33333333

@@ -5752,6 +5752,7 @@ invoked, must return a new {{DocumentFragment}} <a>node</a> whose <a for=Node>no
57525752
interface ShadowRoot : DocumentFragment {
57535753
readonly attribute ShadowRootMode mode;
57545754
readonly attribute Element host;
5755+
attribute EventHandler onslotchange;
57555756
};
57565757

57575758
enum ShadowRootMode { "open", "closed" };
@@ -5779,6 +5780,11 @@ null if <var>event</var>'s <a>composed flag</a> is unset and <a for=/>shadow roo
57795780
<p>The <dfn attribute for=ShadowRoot><code>host</code></dfn> attribute's getter must return the
57805781
<a>context object</a>'s <a for=DocumentFragment>host</a>.
57815782

5783+
<p>The <dfn attribute for=ShadowRoot><code>onslotchange</code></dfn> attribute is an
5784+
<a>event handler IDL attribute</a> for the
5785+
<dfn for=ShadowRoot export><code>onslotchange</code></dfn> <a>event handler</a>, whose
5786+
<a>event handler event type</a> is {{HTMLSlotElement/slotchange}}.
5787+
57825788
<hr>
57835789

57845790
<p>In <dfn export id=concept-shadow-including-tree-order>shadow-including tree order</dfn>, is

0 commit comments

Comments
 (0)