1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 14:54:57 +00:00

LibWeb: Port HTMLObjectElement interface from DeprecatedString to String

This commit is contained in:
Shannon Booth 2023-09-03 15:39:01 +12:00 committed by Tim Flynn
parent de07fb5132
commit 63aa93aaf4
3 changed files with 5 additions and 5 deletions

View file

@ -67,10 +67,10 @@ void HTMLObjectElement::attribute_changed(DeprecatedFlyString const& name, Depre
}
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-object-data
DeprecatedString HTMLObjectElement::data() const
String HTMLObjectElement::data() const
{
auto data = deprecated_attribute(HTML::AttributeNames::data);
return document().parse_url(data).to_deprecated_string();
return MUST(document().parse_url(data).to_string());
}
JS::GCPtr<Layout::Node> HTMLObjectElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)