Implement Trusted types document write sinks (#36824)

Implements the Document.write algorithm covering
Trusted HTML.

Part of #36258

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
Tim van der Lippe 2025-05-04 13:50:33 +02:00 committed by GitHub
parent 43edab336a
commit c00e0aae61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 142 additions and 107 deletions

View file

@ -129,9 +129,9 @@ partial /*sealed*/ interface Document {
[CEReactions, Throws]
undefined close();
[CEReactions, Throws]
undefined write(DOMString... text);
undefined write((TrustedHTML or DOMString)... text);
[CEReactions, Throws]
undefined writeln(DOMString... text);
undefined writeln((TrustedHTML or DOMString)... text);
// user interaction
readonly attribute Window?/*Proxy?*/ defaultView;