LibWeb: Port HTMLTitleElement from ByteString

This commit is contained in:
Shannon Booth 2023-12-24 15:46:54 +13:00 committed by Andreas Kling
parent 020839ad7a
commit adb327d5d3
Notes: sideshowbarker 2024-07-17 06:38:11 +09:00
2 changed files with 3 additions and 3 deletions

View file

@ -35,10 +35,10 @@ void HTMLTitleElement::children_changed()
}
// https://html.spec.whatwg.org/multipage/semantics.html#dom-title-text
ByteString HTMLTitleElement::text()
String HTMLTitleElement::text() const
{
// The text attribute's getter must return this title element's child text content.
return child_text_content().to_byte_string();
return child_text_content();
}
// https://html.spec.whatwg.org/multipage/semantics.html#dom-title-text