1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:47:44 +00:00

LibWeb: Visit custom element definitions in CustomElementRegistry

This commit is contained in:
Aliaksandr Kalenik 2024-03-11 19:37:21 +01:00 committed by Alexander Kalenik
parent bf8bbea209
commit 90112468ac
2 changed files with 15 additions and 7 deletions

View file

@ -36,9 +36,10 @@ private:
CustomElementRegistry(JS::Realm&);
virtual void initialize(JS::Realm&) override;
virtual void visit_edges(Visitor&) override;
// Every CustomElementRegistry has a set of custom element definitions, initially empty. In general, algorithms in this specification look up elements in the registry by any of name, local name, or constructor.
Vector<JS::Handle<CustomElementDefinition>> m_custom_element_definitions;
Vector<JS::NonnullGCPtr<CustomElementDefinition>> m_custom_element_definitions;
// https://html.spec.whatwg.org/multipage/custom-elements.html#element-definition-is-running
// Every CustomElementRegistry also has an element definition is running flag which is used to prevent reentrant invocations of element definition. It is initially unset.