mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Port Node interface from DeprecatedString to String
Which is fortunately quite straight forward :^)
This commit is contained in:
committed by
Andreas Kling
parent
a76ef04ae6
commit
8ce9e51c97
@@ -706,7 +706,7 @@ DeprecatedString Document::title() const
|
||||
// 2. Otherwise, let value be the child text content of the title element, or the empty string if the title element
|
||||
// is null.
|
||||
else if (auto title_element = this->title_element()) {
|
||||
value = title_element->text_content();
|
||||
value = title_element->text_content().value_or(String {}).to_deprecated_string();
|
||||
}
|
||||
|
||||
// 3. Strip and collapse ASCII whitespace in value.
|
||||
|
||||
Reference in New Issue
Block a user