mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
Propagate Trusted Types errors for Node.textContent (#38871)
Part of #36258 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
parent
f1a5da6836
commit
10ac177aa5
14 changed files with 52 additions and 85 deletions
|
@ -3876,8 +3876,7 @@ impl ElementMethods<crate::DomTypeHolder> for Element {
|
|||
.iter()
|
||||
.any(|c| matches!(*c, b'&' | b'\0' | b'<' | b'\r'))
|
||||
{
|
||||
Node::SetTextContent(&target, Some(value), can_gc);
|
||||
return Ok(());
|
||||
return Node::SetTextContent(&target, Some(value), can_gc);
|
||||
}
|
||||
|
||||
// Step 3: Let fragment be the result of invoking the fragment parsing algorithm steps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue