Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions dist/spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@
}
</style>
<link href="https://www.w3.org/StyleSheets/TR/2016/cg-draft" rel="stylesheet">
<meta content="Bikeshed version b9c59eccbcc25454195a0043aa99cbc393f9772d" name="generator">
<meta content="Bikeshed version 5a2c04fbf9f3418b378c5d733b60fe6fc575091b" name="generator">
<link href="https://wicg.github.io/trusted-types/dist/spec/" rel="canonical">
<style>/* style-md-lists */

Expand Down Expand Up @@ -1461,7 +1461,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Trusted Types</h1>
<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>
<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>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down Expand Up @@ -2354,7 +2354,7 @@ <h3 class="heading settled" data-level="3.2" id="get-default-policy-algorithm"><
</ol>
<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>
<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>,
, a string <var>value</var> and a list <var>arguments</var>, execute the following steps:</p>
a string <var>value</var> and a list <var>arguments</var>, execute the following steps:</p>
<ol>
<li data-md>
<p>Let <var>functionName</var> be a function name for the given <var>trustedTypeName</var>,
Expand Down Expand Up @@ -2429,6 +2429,8 @@ <h3 class="heading settled" data-level="3.4" id="get-trusted-type-compliant-stri
<p><var>input</var> as <var>value</var></p>
<li data-md>
<p><var>expectedType</var>’s type name as <var>trustedTypeName</var></p>
<li data-md>
<p>« <var>sink</var> » as <var>arguments</var></p>
</ul>
<li data-md>
<p>If <var>convertedInput</var> is an error, abort the following steps.</p>
Expand Down
3 changes: 2 additions & 1 deletion spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ To get the [=default policy=] for a {{TrustedTypePolicyFactory}} (|factory|), ex
## <dfn abstract-op>Create a Trusted Type</dfn> ## {#create-a-trusted-type-algorithm}

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

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