blob: 32798ed1e830ad5f9c9f0424591e2644e10c6a21 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://github.com/wicg/trusted-types
typedef (DOMString or TrustedHTML or TrustedScript or TrustedScriptURL) TrustedString;
[
Exposed=Window,
RuntimeEnabled=TrustedDOMTypes,
SecureContext
] interface TrustedTypePolicy {
readonly attribute DOMString name;
[CallWith=ScriptState, RaisesException] TrustedHTML createHTML(DOMString input, any... args);
[CallWith=ScriptState, RaisesException] TrustedScript createScript(DOMString input, any... args);
[CallWith=ScriptState, RaisesException] TrustedScriptURL createScriptURL(DOMString input, any... args);
};