Skip to content

Commit

Permalink
Bug 1907849: part 9) Extend WPT to check sink value of "Document pars…
Browse files Browse the repository at this point in the history
…eHTMLUnsafe". r=smaug

One step towards fixing w3c/trusted-types#494.

Differential Revision: https://phabricator.services.mozilla.com/D232363

UltraBlame original commit: cb3e58c8b7ff8d78bfab512fae053cc7de5d787b
  • Loading branch information
marco-c committed Jan 1, 2025
1 parent 4e9b210 commit 6e52bae
Showing 1 changed file with 51 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,34 @@
"
>
<
link
rel
=
"
help
"
href
=
"
https
:
/
/
html
.
spec
.
whatwg
.
org
/
#
dom
-
parsehtmlunsafe
"
>
<
/
head
>
Expand Down Expand Up @@ -316,9 +344,31 @@
{
createHTML
:
(
value
_
sink
)
=
>
{
assert_equals
(
sink
"
Document
parseHTMLUnsafe
"
)
;
return
createHTMLJS
(
value
)
;
}
}
true
)
;
let
Expand Down

0 comments on commit 6e52bae

Please sign in to comment.