@@ -110,6 +110,7 @@ Document includes NonElementParentNode;
110
110
DocumentFragment includes NonElementParentNode;
111
111
112
112
interface mixin DocumentOrShadowRoot {
113
+ readonly attribute CustomElementRegistry? customElementRegistry;
113
114
};
114
115
Document includes DocumentOrShadowRoot;
115
116
ShadowRoot includes DocumentOrShadowRoot;
@@ -120,9 +121,11 @@ interface mixin ParentNode {
120
121
readonly attribute Element? lastElementChild;
121
122
readonly attribute unsigned long childElementCount;
122
123
123
- [CEReactions, Unscopable] undefined prepend((Node or TrustedScript or DOMString)... nodes);
124
- [CEReactions, Unscopable] undefined append((Node or TrustedScript or DOMString)... nodes);
125
- [CEReactions, Unscopable] undefined replaceChildren((Node or TrustedScript or DOMString)... nodes);
124
+ [CEReactions, Unscopable] undefined prepend((Node or DOMString)... nodes);
125
+ [CEReactions, Unscopable] undefined append((Node or DOMString)... nodes);
126
+ [CEReactions, Unscopable] undefined replaceChildren((Node or DOMString)... nodes);
127
+
128
+ [CEReactions] undefined moveBefore(Node node, Node? child);
126
129
127
130
Element? querySelector(DOMString selectors);
128
131
[NewObject] NodeList querySelectorAll(DOMString selectors);
@@ -139,9 +142,9 @@ Element includes NonDocumentTypeChildNode;
139
142
CharacterData includes NonDocumentTypeChildNode;
140
143
141
144
interface mixin ChildNode {
142
- [CEReactions, Unscopable] undefined before((Node or TrustedScript or DOMString)... nodes);
143
- [CEReactions, Unscopable] undefined after((Node or TrustedScript or DOMString)... nodes);
144
- [CEReactions, Unscopable] undefined replaceWith((Node or TrustedScript or DOMString)... nodes);
145
+ [CEReactions, Unscopable] undefined before((Node or DOMString)... nodes);
146
+ [CEReactions, Unscopable] undefined after((Node or DOMString)... nodes);
147
+ [CEReactions, Unscopable] undefined replaceWith((Node or DOMString)... nodes);
145
148
[CEReactions, Unscopable] undefined remove();
146
149
};
147
150
DocumentType includes ChildNode;
@@ -237,7 +240,7 @@ interface Node : EventTarget {
237
240
[CEReactions] attribute DOMString? textContent;
238
241
[CEReactions] undefined normalize();
239
242
240
- [CEReactions, NewObject] Node cloneNode(optional boolean deep = false);
243
+ [CEReactions, NewObject] Node cloneNode(optional boolean subtree = false);
241
244
boolean isEqualNode(Node? otherNode);
242
245
boolean isSameNode(Node? otherNode); // legacy alias of ===
243
246
@@ -291,7 +294,7 @@ interface Document : Node {
291
294
[NewObject] Comment createComment(DOMString data);
292
295
[NewObject] ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data);
293
296
294
- [CEReactions, NewObject] Node importNode(Node node, optional boolean deep = false);
297
+ [CEReactions, NewObject] Node importNode(Node node, optional ( boolean or ImportNodeOptions) options = false);
295
298
[CEReactions] Node adoptNode(Node node);
296
299
297
300
[NewObject] Attr createAttribute(DOMString localName);
@@ -310,9 +313,15 @@ interface Document : Node {
310
313
interface XMLDocument : Document {};
311
314
312
315
dictionary ElementCreationOptions {
316
+ CustomElementRegistry customElementRegistry;
313
317
DOMString is;
314
318
};
315
319
320
+ dictionary ImportNodeOptions {
321
+ CustomElementRegistry customElementRegistry;
322
+ boolean selfOnly = false;
323
+ };
324
+
316
325
[Exposed=Window]
317
326
interface DOMImplementation {
318
327
[NewObject] DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId);
@@ -342,6 +351,7 @@ interface ShadowRoot : DocumentFragment {
342
351
readonly attribute boolean clonable;
343
352
readonly attribute boolean serializable;
344
353
readonly attribute Element host;
354
+
345
355
attribute EventHandler onslotchange;
346
356
};
347
357
@@ -382,6 +392,8 @@ interface Element : Node {
382
392
ShadowRoot attachShadow(ShadowRootInit init);
383
393
readonly attribute ShadowRoot? shadowRoot;
384
394
395
+ readonly attribute CustomElementRegistry? customElementRegistry;
396
+
385
397
Element? closest(DOMString selectors);
386
398
boolean matches(DOMString selectors);
387
399
boolean webkitMatchesSelector(DOMString selectors); // legacy alias of .matches
@@ -400,6 +412,7 @@ dictionary ShadowRootInit {
400
412
SlotAssignmentMode slotAssignment = "named";
401
413
boolean clonable = false;
402
414
boolean serializable = false;
415
+ CustomElementRegistry customElementRegistry;
403
416
};
404
417
405
418
[Exposed=Window,
0 commit comments