WebIDLpedia

TrustedTypePolicy interface

Definition

Trusted Types defines TrustedTypePolicy



[Exposed=(Window,Worker)]
interface TrustedTypePolicy {
  readonly attribute DOMString name;
  TrustedHTML createHTML(DOMString input, any... arguments);
  TrustedScript createScript(DOMString input, any... arguments);
  TrustedScriptURL createScriptURL(DOMString input, any... arguments);
};

Methods and attributes that return objects implementing TrustedTypePolicy

Referring IDL interfaces/dictionaries