1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-03 05:32:13 +00:00

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
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 // 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. // 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 // https://html.spec.whatwg.org/multipage/semantics.html#dom-title-text

View file

@ -17,7 +17,7 @@ class HTMLTitleElement final : public HTMLElement {
public: public:
virtual ~HTMLTitleElement() override; virtual ~HTMLTitleElement() override;
ByteString text(); String text() const;
void set_text(String const& value); void set_text(String const& value);
private: private: