mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 01:08:48 +00:00
LibWeb: Port HTMLTitleElement from ByteString
This commit is contained in:
parent
020839ad7a
commit
adb327d5d3
Notes:
sideshowbarker
2024-07-17 06:38:11 +09:00
Author: https://github.com/shannonbooth
Commit: adb327d5d3
Pull-request: https://github.com/SerenityOS/serenity/pull/22261
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue