mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Port DOM::Node from DeprecatedString
This commit is contained in:
committed by
Andreas Kling
parent
89bbf53745
commit
a8f5ebeddd
@@ -38,14 +38,14 @@ void HTMLTitleElement::children_changed()
|
||||
DeprecatedString HTMLTitleElement::text()
|
||||
{
|
||||
// The text attribute's getter must return this title element's child text content.
|
||||
return child_text_content();
|
||||
return child_text_content().to_deprecated_string();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/semantics.html#dom-title-text
|
||||
void HTMLTitleElement::set_text(String const& value)
|
||||
{
|
||||
// The text attribute's setter must string replace all with the given value within this title element.
|
||||
string_replace_all(value.to_deprecated_string());
|
||||
string_replace_all(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user