From b7c081546969b38c928130f047bb3337e4a09384 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sun, 3 Dec 2023 14:44:51 -0500 Subject: [PATCH] LibWeb: Remove DeprecatedString usage from HTMLScriptElement's `text` There was some awkward timing between these APIs being added and the methods they use being ported to String. --- Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);