Skip to content

Commit 84d6179

Browse files
authored
Added the sink parameter to default policy. (#203)
1 parent 4505ff6 commit 84d6179

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

dist/spec/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@
12131213
}
12141214
</style>
12151215
<link href="https://www.w3.org/StyleSheets/TR/2016/cg-draft" rel="stylesheet">
1216-
<meta content="Bikeshed version b9c59eccbcc25454195a0043aa99cbc393f9772d" name="generator">
1216+
<meta content="Bikeshed version 5a2c04fbf9f3418b378c5d733b60fe6fc575091b" name="generator">
12171217
<link href="https://wicg.github.io/trusted-types/dist/spec/" rel="canonical">
12181218
<style>/* style-md-lists */
12191219

@@ -1461,7 +1461,7 @@
14611461
<div class="head">
14621462
<p data-fill-with="logo"></p>
14631463
<h1 class="p-name no-ref" id="title">Trusted Types</h1>
1464-
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Draft Community Group Report, <time class="dt-updated" datetime="2019-07-24">24 July 2019</time></span></h2>
1464+
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Draft Community Group Report, <time class="dt-updated" datetime="2019-08-06">6 August 2019</time></span></h2>
14651465
<div data-fill-with="spec-metadata">
14661466
<dl>
14671467
<dt>This version:
@@ -2354,7 +2354,7 @@ <h3 class="heading settled" data-level="3.2" id="get-default-policy-algorithm"><
23542354
</ol>
23552355
<h3 class="heading settled" data-level="3.3" id="create-a-trusted-type-algorithm"><span class="secno">3.3. </span><span class="content"><dfn class="dfn-paneled" data-dfn-type="abstract-op" data-export id="abstract-opdef-create-a-trusted-type">Create a Trusted Type</dfn></span><a class="self-link" href="#create-a-trusted-type-algorithm"></a></h3>
23562356
<p>Given a <code class="idl"><a data-link-type="idl" href="#trustedtypepolicy" id="ref-for-trustedtypepolicy①⓪">TrustedTypePolicy</a></code> <var>policy</var>, a type name <var>trustedTypeName</var>,
2357-
, a string <var>value</var> and a list <var>arguments</var>, execute the following steps:</p>
2357+
a string <var>value</var> and a list <var>arguments</var>, execute the following steps:</p>
23582358
<ol>
23592359
<li data-md>
23602360
<p>Let <var>functionName</var> be a function name for the given <var>trustedTypeName</var>,
@@ -2429,6 +2429,8 @@ <h3 class="heading settled" data-level="3.4" id="get-trusted-type-compliant-stri
24292429
<p><var>input</var> as <var>value</var></p>
24302430
<li data-md>
24312431
<p><var>expectedType</var>’s type name as <var>trustedTypeName</var></p>
2432+
<li data-md>
2433+
<p>« <var>sink</var> » as <var>arguments</var></p>
24322434
</ul>
24332435
<li data-md>
24342436
<p>If <var>convertedInput</var> is an error, abort the following steps.</p>

spec/index.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ To get the [=default policy=] for a {{TrustedTypePolicyFactory}} (|factory|), ex
895895
## <dfn abstract-op>Create a Trusted Type</dfn> ## {#create-a-trusted-type-algorithm}
896896

897897
Given a {{TrustedTypePolicy}} |policy|, a type name |trustedTypeName|,
898-
, a string |value| and a list |arguments|, execute the following steps:
898+
a string |value| and a list |arguments|, execute the following steps:
899899

900900
1. Let |functionName| be a function name for the given |trustedTypeName|,
901901
based on the following table:
@@ -963,6 +963,7 @@ Given a {{TrustedType}} type (|expectedType|), a [=Realm/global object=] (|globa
963963
* |defaultPolicy| as |policy|
964964
* |input| as |value|
965965
* |expectedType|’s type name as |trustedTypeName|
966+
* &laquo; |sink| &raquo; as |arguments|
966967
1. If |convertedInput| is an error, abort the following steps.
967968
1. If |convertedInput| has type |expectedType|, then return
968969
stringified |convertedInput| and abort the following steps.

0 commit comments

Comments
 (0)