-
Notifications
You must be signed in to change notification settings - Fork 22.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix globals, part 9:
trustedTypes
(#33415)
* move * Apply suggestions from code review
- Loading branch information
1 parent
b232375
commit fc4f2ea
Showing
7 changed files
with
52 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: "Window: trustedTypes property" | ||
short-title: trustedTypes | ||
slug: Web/API/Window/trustedTypes | ||
page-type: web-api-instance-property | ||
browser-compat: api.trustedTypes | ||
--- | ||
|
||
{{APIRef("Trusted Types API")}} | ||
|
||
The **`trustedTypes`** read-only property of the {{domxref("Window")}} interface returns the {{domxref("TrustedTypePolicyFactory")}} object associated with the global object, providing the entry point for using the {{domxref("Trusted Types API", "", "", "nocode")}}. | ||
|
||
## Value | ||
|
||
A {{domxref("TrustedTypePolicyFactory")}} object. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
files/en-us/web/api/workerglobalscope/trustedtypes/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: "WorkerGlobalScope: trustedTypes property" | ||
short-title: trustedTypes | ||
slug: Web/API/WorkerGlobalScope/trustedTypes | ||
page-type: web-api-instance-property | ||
browser-compat: api.trustedTypes | ||
--- | ||
|
||
{{APIRef("Trusted Types API")}} | ||
|
||
The **`trustedTypes`** read-only property of the {{domxref("WorkerGlobalScope")}} interface returns the {{domxref("TrustedTypePolicyFactory")}} object associated with the global object, providing the entry point for using the {{domxref("Trusted Types API", "", "", "nocode")}}. | ||
|
||
## Value | ||
|
||
A {{domxref("TrustedTypePolicyFactory")}} object. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters