diff --git a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h index 2822ae2534..0be646e3e4 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h +++ b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h @@ -55,8 +55,8 @@ public: void unmark_as_already_started(Badge); void unmark_as_parser_inserted(Badge); - String text() { return MUST(String::from_deprecated_string(child_text_content())); } - void set_text(String const& text) { string_replace_all(text.to_deprecated_string()); } + String text() { return child_text_content(); } + void set_text(String const& text) { string_replace_all(text); } private: HTMLScriptElement(DOM::Document&, DOM::QualifiedName);