Browse Source

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.
Timothy Flynn 1 year ago
parent
commit
b7c0815469
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h

+ 2 - 2
Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h

@@ -55,8 +55,8 @@ public:
     void unmark_as_already_started(Badge<DOM::Range>);
     void unmark_as_already_started(Badge<DOM::Range>);
     void unmark_as_parser_inserted(Badge<DOM::Range>);
     void unmark_as_parser_inserted(Badge<DOM::Range>);
 
 
-    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:
 private:
     HTMLScriptElement(DOM::Document&, DOM::QualifiedName);
     HTMLScriptElement(DOM::Document&, DOM::QualifiedName);