Window:trustedTypes 属性

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Window 接口的 trustedTypes 只读属性返回与全局对象关联的 TrustedTypePolicyFactory 对象,为使用可信类型 API 提供入口点。

一个 TrustedTypePolicyFactory 对象。

规范

Specification
Trusted Types
# extensions-to-the-windoworworkerglobalscope-interface

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
trustedTypes

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
See implementation notes.
User must explicitly enable this feature.