mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 19:59:17 +00:00
LibWeb: Make DOMStringMap a LegacyPlatformObject
Since it has a custom named getter, it should have been this all along.
This commit is contained in:
@@ -19,7 +19,7 @@ JS::NonnullGCPtr<DOMStringMap> DOMStringMap::create(DOM::Element& element)
|
||||
}
|
||||
|
||||
DOMStringMap::DOMStringMap(DOM::Element& element)
|
||||
: PlatformObject(Bindings::cached_web_prototype(element.realm(), "DOMStringMap"))
|
||||
: LegacyPlatformObject(Bindings::cached_web_prototype(element.realm(), "DOMStringMap"))
|
||||
, m_associated_element(element)
|
||||
{
|
||||
}
|
||||
@@ -183,4 +183,9 @@ bool DOMStringMap::delete_existing_named_property(String const& name)
|
||||
return true;
|
||||
}
|
||||
|
||||
JS::Value DOMStringMap::named_item_value(FlyString const& name) const
|
||||
{
|
||||
return js_string(vm(), determine_value_of_named_property(name));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user