Skip to content

Commit

Permalink
Fix trusted-types.idl
Browse files Browse the repository at this point in the history
  • Loading branch information
foolip committed Jul 13, 2020
1 parent 34d815f commit e487e6c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions ed/idl/trusted-types.idl
Original file line number Diff line number Diff line change
Expand Up @@ -60,31 +60,31 @@ typedef [StringContext=TrustedScript] DOMString ScriptString;
typedef [StringContext=TrustedScriptURL] USVString ScriptURLString;
typedef (TrustedHTML or TrustedScript or TrustedScriptURL) TrustedType;

partial interface mixin Window {
partial interface Window {
[SecureContext] readonly attribute TrustedTypePolicyFactory trustedTypes;
};

partial interface mixin Document {
partial interface Document {
[CEReactions] void write(HTMLString... text);
[CEReactions] void writeln(HTMLString... text);
};

partial interface mixin HTMLScriptElement : HTMLElement {
partial interface HTMLScriptElement {
[CEReactions] attribute [TreatNullAs=EmptyString] ScriptString innerText;
[CEReactions] attribute ScriptString? textContent;
[CEReactions] attribute ScriptURLString src;
[CEReactions] attribute ScriptString text;
};

partial interface mixin HTMLIFrameElement : HTMLElement {
partial interface HTMLIFrameElement {
[CEReactions] attribute HTMLString srcdoc;
};

partial interface HTMLEmbedElement : HTMLElement {
partial interface HTMLEmbedElement {
[CEReactions] attribute ScriptURLString src;
};

partial interface HTMLObjectElement : HTMLElement {
partial interface HTMLObjectElement {
[CEReactions] attribute ScriptURLString data;
[CEReactions] attribute ScriptURLString codeBase; // obsolete
};
Expand All @@ -97,27 +97,27 @@ partial interface mixin WindowOrWorkerGlobalScope {
};

[Exposed=(Window,Worker)]
partial interface Worker : EventTarget {
partial interface Worker {
constructor(ScriptURLString scriptURL, optional WorkerOptions options = {});
};

[Exposed=(Window,Worker)]
partial interface SharedWorker : EventTarget {
partial interface SharedWorker {
constructor(ScriptURLString scriptURL, optional (DOMString or WorkerOptions) options = {});
};

[Exposed=Worker]
partial interface WorkerGlobalScope : EventTarget {
partial interface WorkerGlobalScope {
void importScripts(ScriptURLString... urls);
};

[SecureContext, Exposed=(Window,Worker)]
partial interface ServiceWorkerContainer : EventTarget {
partial interface ServiceWorkerContainer {
[NewObject] Promise<ServiceWorkerRegistration> register(ScriptURLString scriptURL, optional RegistrationOptions options = {});
};

[Exposed=Window]
partial interface mixin SVGAnimatedString {
partial interface SVGAnimatedString {
attribute (DOMString or TrustedScriptURL) baseVal;
};

Expand Down

0 comments on commit e487e6c

Please sign in to comment.