LibWeb: Add customElements.getName

This commit is contained in:
Keith Cirkel 2024-07-06 15:35:10 +01:00 committed by Andrew Kaster
commit 8d593bcfeb
Notes: sideshowbarker 2024-07-17 05:00:08 +09:00
3 changed files with 17 additions and 0 deletions

View file

@ -5,6 +5,7 @@
interface CustomElementRegistry {
[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);
};