1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

LibWeb: Port Comment interface from DeprecatedString to String

This commit is contained in:
Shannon Booth 2023-09-05 00:01:53 +12:00 committed by Tim Flynn
parent 4da1f4e836
commit cc1e4c5cb3
6 changed files with 14 additions and 14 deletions

View file

@ -1427,7 +1427,7 @@ JS::NonnullGCPtr<Text> Document::create_text_node(DeprecatedString const& data)
JS::NonnullGCPtr<Comment> Document::create_comment(DeprecatedString const& data)
{
return heap().allocate<Comment>(realm(), *this, data);
return heap().allocate<Comment>(realm(), *this, MUST(String::from_deprecated_string(data)));
}
// https://dom.spec.whatwg.org/#dom-document-createprocessinginstruction