Skip to content

Commit 1f8e6e2

Browse files
committed
Don't define _promise_ but use {{Promise}} reference.
1 parent c10240a commit 1f8e6e2

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

common/algorithm-terms.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@
4242
which includes the <a>active context</a>, <a>active subject</a>, and <a>active property</a>.
4343
The <a>processor state</a> is managed as a stack with elements from the previous <a>processor state</a>
4444
copied into a new <a>processor state</a> when entering a new <a>JSON object</a>.</dd>
45-
<dt><dfn data-cite="ECMASCRIPT#sec-promise-objects">promise</dfn></dt><dd>
46-
A <a>promise</a> is an object that represents the eventual result of a single asynchronous operation.
47-
Promises are defined in [[ECMASCRIPT]].</dd>
4845
<dt><dfn>require all flag</dfn></dt><dd>
4946
A flag specifying that all properties present in the <a>input frame</a>
5047
MUST either have a default value

index.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5206,7 +5206,7 @@ <h3>The <dfn>JsonLdProcessor</dfn> Interface</h3>
52065206
that developers use to access the JSON-LD transformation methods.</p>
52075207

52085208
<p>It is important to highlight that implementations do not modify the input parameters.
5209-
If an error is detected, the <a>Promise</a> is
5209+
If an error is detected, the {{Promise}} is
52105210
rejected passing a <a>JsonLdError</a> with the corresponding error
52115211
<a data-link-for="JsonLdError">code</a>
52125212
and processing is stopped.</p>
@@ -5249,7 +5249,7 @@ <h3>The <dfn>JsonLdProcessor</dfn> Interface</h3>
52495249
<var>context</var> according to the steps in the <a href="#compaction-algorithm">Compaction algorithm</a>:</p>
52505250

52515251
<ol>
5252-
<li>Create a new <a>Promise</a> <var>promise</var> and return it.
5252+
<li>Create a new {{Promise}} <var>promise</var> and return it.
52535253
The following steps are then executed asynchronously.</li>
52545254
<li>Set <var>expanded input</var> to the result of
52555255
using the <a data-link-for="JsonLdProcessor">expand()</a> method
@@ -5300,7 +5300,7 @@ <h3>The <dfn>JsonLdProcessor</dfn> Interface</h3>
53005300
according to the steps in the <a href="#expansion-algorithm">Expansion algorithm</a>:</p>
53015301

53025302
<ol>
5303-
<li>Create a new <a>Promise</a> <var>promise</var> and return it.
5303+
<li>Create a new {{Promise}} <var>promise</var> and return it.
53045304
The following steps are then executed asynchronously.</li>
53055305
<li>If the passed <a data-lt="jsonldprocessor-expand-input">input</a>
53065306
is a <a>string</a> representing the <a>IRI</a> of a remote document, await and dereference it as <var>remote document</var>
@@ -5355,7 +5355,7 @@ <h3>The <dfn>JsonLdProcessor</dfn> Interface</h3>
53555355
according to the steps in the <a href="#flattening-algorithm">Flattening algorithm</a>:</p>
53565356

53575357
<ol>
5358-
<li>Create a new <a>Promise</a> <var>promise</var> and return it.
5358+
<li>Create a new {{Promise}} <var>promise</var> and return it.
53595359
The following steps are then executed asynchronously.</li>
53605360
<li>Set <var>expanded input</var> to the result of using the <a data-link-for="JsonLdProcessor">expand()</a> method
53615361
using <a data-lt="jsonldprocessor-flatten-input">input</a>
@@ -5411,7 +5411,7 @@ <h3>The <dfn>JsonLdProcessor</dfn> Interface</h3>
54115411
from an arbitrary input, other than the <a data-link-for="JsonLdProcessor">toRdf()</a> method.</p>
54125412

54135413
<ol>
5414-
<li>Create a new <a>Promise</a> <var>promise</var> and return it.
5414+
<li>Create a new {{Promise}} <var>promise</var> and return it.
54155415
The following steps are then executed asynchronously.</li>
54165416
<li>Set <var>expanded result</var> to the result of invoking the
54175417
<a href="#serialize-rdf-as-json-ld-algorithm">Serialize RDF as JSON-LD Algorithm</a> method
@@ -5439,7 +5439,7 @@ <h3>The <dfn>JsonLdProcessor</dfn> Interface</h3>
54395439
according to the steps in the <a href="#deserialize-json-ld-to-rdf-algorithm">Deserialize JSON-LD to RDF Algorithm</a>:</p>
54405440

54415441
<ol>
5442-
<li>Create a new <a>Promise</a> <var>promise</var> and return it.
5442+
<li>Create a new {{Promise}} <var>promise</var> and return it.
54435443
The following steps are then executed asynchronously.</li>
54445444
<li>Set <var>expanded input</var> to the result of using the
54455445
<a data-link-for="JsonLdProcessor">expand()</a> method
@@ -5734,8 +5734,8 @@ <h3>LoadDocumentCallback</h3>
57345734

57355735
<p>The <dfn>LoadDocumentCallback</dfn> defines a callback that custom document loaders
57365736
have to implement to be used to retrieve remote documents and contexts.
5737-
The callback returns a <a>Promise</a> resolving to a <a>RemoteDocument</a>.
5738-
On failure, the <a>Promise</a> is rejected with an appropriate error <a data-link-for="JsonLdError">code</a>.</p>
5737+
The callback returns a {{Promise}} resolving to a <a>RemoteDocument</a>.
5738+
On failure, the {{Promise}} is rejected with an appropriate error <a data-link-for="JsonLdError">code</a>.</p>
57395739

57405740
<pre class="idl" data-transform="unComment"><!--
57415741
callback LoadDocumentCallback = Promise&lt;RemoteDocument> (
@@ -5756,7 +5756,7 @@ <h3>LoadDocumentCallback</h3>
57565756
requirements on implementations of the callback.</p>
57575757

57585758
<ol class="changed">
5759-
<li>Create a new <a>Promise</a> <var>promise</var> and return it.
5759+
<li>Create a new {{Promise}} <var>promise</var> and return it.
57605760
The following steps are then executed asynchronously.</li>
57615761
<li>Set <var>document</var> to the body retrieved from
57625762
the resource identified by <a data-link-for="LoadDocumentCallback">url</a>,
@@ -5927,7 +5927,7 @@ <h3>RemoteDocument</h3>
59275927
If the response's <a>Content-Type</a> is <code>application/ld+json</code>,
59285928
the HTTP Link Header is ignored.
59295929
If multiple HTTP Link Headers using the <code>http://www.w3.org/ns/json-ld#context</code> link relation are found,
5930-
the <a>Promise</a> of the <a>LoadDocumentCallback</a> is rejected
5930+
the {{Promise}} of the <a>LoadDocumentCallback</a> is rejected
59315931
with a <a>JsonLdError</a> whose code is set to <a data-link-for="JsonLdErrorCode">multiple context link headers</a>.</dd>
59325932
<dt><dfn data-dfn-for="RemoteDocument">documentUrl</dfn></dt>
59335933
<dd>The final URL of the loaded document.

0 commit comments

Comments
 (0)