mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Implement scoped custom element registries
This commit is contained in:
committed by
Tim Ledbetter
parent
90c39c214d
commit
ed6a5f25a0
Notes:
github-actions[bot]
2026-03-27 19:50:58 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/ed6a5f25a0a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8613 Reviewed-by: https://github.com/tcl3 ✅
@@ -3,11 +3,14 @@
|
||||
// https://html.spec.whatwg.org/multipage/custom-elements.html#customelementregistry
|
||||
[Exposed=Window]
|
||||
interface CustomElementRegistry {
|
||||
constructor();
|
||||
|
||||
[CEReactions] undefined define(DOMString name, CustomElementConstructor constructor, optional ElementDefinitionOptions options = {});
|
||||
(CustomElementConstructor or undefined) get(DOMString name);
|
||||
DOMString? getName(CustomElementConstructor constructor);
|
||||
Promise<CustomElementConstructor> whenDefined(DOMString name);
|
||||
[CEReactions] undefined upgrade(Node root);
|
||||
[CEReactions, ImplementedAs=initialize_for_bindings] undefined initialize(Node root);
|
||||
};
|
||||
|
||||
callback CustomElementConstructor = HTMLElement ();
|
||||
|
||||
Reference in New Issue
Block a user