Bug 1964268 [wpt PR 52318] - Implement Trusted types document write sinks,
Automatic update from web-platform-tests Implement Trusted types document write sinks Implements the Document.write algorithm covering Trusted HTML. Part of #36258 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com> -- wpt-commits: d3287f10104c970fb7216606a93ace0cf7c16867 wpt-pr: 52318 Differential Revision: https://phabricator.services.mozilla.com/D248819
This commit is contained in:
committed by
aborovova@mozilla.com
parent
906a42158a
commit
b367d8295f
@@ -124,6 +124,9 @@
|
||||
assert_equals(sink, "Document write");
|
||||
} else if (html === "assertSinkEqualsDocumentWriteLn") {
|
||||
assert_equals(sink, "Document writeln");
|
||||
} else if (html === "assertSinkEqualsDocumentWriteLn\n") {
|
||||
// Ensure that new line characters aren't incorrectly added prior to processing
|
||||
assert_unreached(`Should not process any other HTML, but got "${html}"`);
|
||||
}
|
||||
|
||||
return html.replace("Hi", "Quack")
|
||||
|
||||
Reference in New Issue
Block a user