mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 09:48:47 +00:00
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.
This commit is contained in:
parent
c0bacc6c4b
commit
b7c0815469
Notes:
sideshowbarker
2024-07-17 03:51:15 +09:00
Author: https://github.com/trflynn89
Commit: b7c0815469
Pull-request: https://github.com/SerenityOS/serenity/pull/22146
1 changed files with 2 additions and 2 deletions
|
@ -55,8 +55,8 @@ public:
|
|||
void unmark_as_already_started(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:
|
||||
HTMLScriptElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue