mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00
LibWeb: Port HTMLTitleElement from ByteString
This commit is contained in:
parent
020839ad7a
commit
adb327d5d3
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
|
||||
|
|
|
@ -17,7 +17,7 @@ class HTMLTitleElement final : public HTMLElement {
|
|||
public:
|
||||
virtual ~HTMLTitleElement() override;
|
||||
|
||||
ByteString text();
|
||||
String text() const;
|
||||
void set_text(String const& value);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue