mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
Implement Trusted Types for ShadowRoot (#38595)
Also make TrustedHTML work the same as TrustedScript by only taking 1 `&str` to make things easier. Part of #36258 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
parent
abc549eff7
commit
3976fa77bc
10 changed files with 38 additions and 52 deletions
|
@ -4128,8 +4128,7 @@ impl Document {
|
|||
string = TrustedHTML::get_trusted_script_compliant_string(
|
||||
&self.global(),
|
||||
TrustedHTMLOrString::String(string.into()),
|
||||
containing_class,
|
||||
field,
|
||||
&format!("{} {}", containing_class, field),
|
||||
can_gc,
|
||||
)?
|
||||
.as_ref()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue