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:
parent
4da1f4e836
commit
cc1e4c5cb3
6 changed files with 14 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue