mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-07 00:19:27 +00:00
LibWeb: Skip UTF-8 validation in Node::descendant_text_content()
Since we're just concatenating a bunch of strings that are already UTF-8, we don't need to check that the result is also UTF-8.
This commit is contained in:
parent
7fedf806c2
commit
413eb19579
|
@ -151,7 +151,7 @@ String Node::descendant_text_content() const
|
|||
builder.append(text_node.data());
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
return MUST(builder.to_string());
|
||||
return builder.to_string_without_validation();
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-node-textcontent
|
||||
|
|
Loading…
Reference in a new issue