mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
LibWeb: Port HTMLObjectElement interface from DeprecatedString to String
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 04:57:23 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/63aa93aaf4 Pull-request: https://github.com/SerenityOS/serenity/pull/20926 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/trflynn89 ✅
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user