/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
components/script_bindings/webidls/CustomElementRegistry.webidl
28 строк
878 B
Shubham Gupta
script: Expose `initialize` method of `CustomElementRegistry`; Reduce unnecessary rooting in all variants of `fn set_custom_element_registry` (#45903)
24 июн 2026, 21:04
Не верифицирован
24 июн 2026, 21:04
b1b655d
Код
Авторство
О чём код?
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ // https://html.spec.whatwg.org/multipage/#customelementregistry [Exposed=Window] interface CustomElementRegistry { constructor(); [Throws, CEReactions] undefined define( DOMString name, CustomElementConstructor constructor_, optional ElementDefinitionOptions options = {} ); any get(DOMString name); DOMString? getName(CustomElementConstructor constructor); Promise<CustomElementConstructor> whenDefined(DOMString name); [CEReactions] undefined upgrade(Node root); [CEReactions, Throws] undefined initialize(Node root); }; callback CustomElementConstructor = HTMLElement(); dictionary ElementDefinitionOptions { DOMString extends; };