blob: 60f712be38222596b3072ddaff3fb8f4cdbc1ead [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 or TrustedURL) TrustedString;
[
Exposed=Window,
RuntimeEnabled=TrustedDOMTypes
] interface TrustedTypePolicy {
[Unforgeable] readonly attribute DOMString name;
[CallWith=ScriptState, RaisesException, Unforgeable] TrustedHTML createHTML(DOMString input);
[CallWith=ScriptState, RaisesException, Unforgeable] TrustedScript createScript(DOMString input);
[CallWith=ScriptState, RaisesException, Unforgeable] TrustedScriptURL createScriptURL(DOMString input);
[CallWith=ScriptState, RaisesException, Unforgeable] TrustedURL createURL(DOMString input);
};