LibWeb: Implement Trusted Types for HTMLIFrameElement#srcdoc

This commit is contained in:
Luke Wilde 2025-10-31 11:51:57 +00:00 committed by Tim Flynn
parent 0f3a9a6958
commit d211df8118
Notes: github-actions[bot] 2025-11-06 16:46:21 +00:00
8 changed files with 49 additions and 19 deletions

View file

@ -1,6 +1,7 @@
#import <HTML/HTMLElement.idl>
#import <HTML/Scripting/Fetching.idl>
#import <DOM/Document.idl>
#import <TrustedTypes/TrustedHTML.idl>
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#htmliframeelement
[Exposed=Window]
@ -9,7 +10,7 @@ interface HTMLIFrameElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions, Reflect, URL] attribute USVString src;
[CEReactions, Reflect] attribute DOMString srcdoc;
[CEReactions] attribute (TrustedHTML or Utf16DOMString) srcdoc;
[CEReactions, Reflect] attribute DOMString name;
[SameObject, PutForwards=value] readonly attribute DOMTokenList sandbox;
[CEReactions, Reflect] attribute DOMString allow;