mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 10:36:02 +00:00
LibWeb: Use relevant_global_object in lookup_custom_element_definition
This commit is contained in:
parent
3171abe92a
commit
80a06fa672
Notes:
sideshowbarker
2024-07-17 10:54:57 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 80a06fa672
Pull-request: https://github.com/SerenityOS/serenity/pull/18219
1 changed files with 1 additions and 1 deletions
|
@ -2436,7 +2436,7 @@ JS::GCPtr<HTML::CustomElementDefinition> Document::lookup_custom_element_definit
|
|||
return nullptr;
|
||||
|
||||
// 3. Let registry be document's relevant global object's CustomElementRegistry object.
|
||||
auto registry = window().custom_elements();
|
||||
auto registry = verify_cast<HTML::Window>(relevant_global_object(*this)).custom_elements();
|
||||
|
||||
// 4. If there is custom element definition in registry with name and local name both equal to localName, return that custom element definition.
|
||||
auto converted_local_name = String::from_deprecated_string(local_name).release_value_but_fixme_should_propagate_errors();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue