mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
LibWeb: Port Document interface from DeprecatedString to String
This commit is contained in:
parent
9d88e14f20
commit
e74031a396
15 changed files with 108 additions and 96 deletions
|
@ -125,7 +125,7 @@ WebIDL::ExceptionOr<void> HTMLElement::set_content_editable(StringView content_e
|
|||
void HTMLElement::set_inner_text(StringView text)
|
||||
{
|
||||
remove_all_children();
|
||||
MUST(append_child(document().create_text_node(text)));
|
||||
MUST(append_child(document().create_text_node(MUST(String::from_utf8(text)))));
|
||||
|
||||
set_needs_style_update(true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue