mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +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
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ String Node::descendant_text_content() const
|
||||||
builder.append(text_node.data());
|
builder.append(text_node.data());
|
||||||
return IterationDecision::Continue;
|
return IterationDecision::Continue;
|
||||||
});
|
});
|
||||||
return MUST(builder.to_string());
|
return builder.to_string_without_validation();
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://dom.spec.whatwg.org/#dom-node-textcontent
|
// https://dom.spec.whatwg.org/#dom-node-textcontent
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue