Skip to content

Commit 9f11d92

Browse files
committed
Cleanup some promises language.
1 parent 1a4bf00 commit 9f11d92

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

index.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5078,7 +5078,7 @@ <h3>The <dfn>JsonLdProcessor</dfn> Interface</h3>
50785078
and if passed, the <a data-link-for="JsonldOptions">compactArrays</a>
50795079
<span class="changed">and <a data-link-for="JsonldOptions">ordered</a></span>
50805080
flags in <a data-lt="jsonldprocessor-compact-options">options</a>.</li>
5081-
<li>Fulfill the <var>promise</var> passing <var>compacted output</var>
5081+
<li>Resolve the <var>promise</var> with <var>compacted output</var>
50825082
<span class="changed">transforming <var>compacted output</var> from the
50835083
<a>internal representation</a> to a JSON serialization</span>.</li>
50845084
</ol>
@@ -5110,8 +5110,8 @@ <h3>The <dfn>JsonLdProcessor</dfn> Interface</h3>
51105110
<li>If the passed <a data-lt="jsonldprocessor-expand-input">input</a>
51115111
is a <a>string</a> representing the <a>IRI</a> of a remote document, await and dereference it as <var>remote document</var>
51125112
using <a>LoadDocumentCallback</a>, passing <a data-lt="jsonldprocessor-expand-input">input</a>
5113-
for <a data-link-for="LoadDocumentCallback">url</a>
5114-
and the <a data-link-for="JsonldOptions">extractAllScripts</a> option for <a data-link-for="LoadDocumentOptions">extractAllScripts</a>.
5113+
for <a data-link-for="LoadDocumentCallback">url</a>,
5114+
the <a data-link-for="JsonldOptions">extractAllScripts</a> option for <a data-link-for="LoadDocumentOptions">extractAllScripts</a>.
51155115
</li>
51165116
<li class="changed">If necessary, transform <a data-link-for="RemoteDocument">document</a>
51175117
from <var>remote document</var> into the <a>internal representation</a>.
@@ -5137,7 +5137,7 @@ <h3>The <dfn>JsonLdProcessor</dfn> Interface</h3>
51375137
and if passed, the <span class="changed"><a data-link-for="JsonldOptions">frameExpansion</a></span>
51385138
<span class="changed">and <a data-link-for="JsonldOptions">ordered</a></span>
51395139
flags in <a data-lt="jsonldprocessor-compact-options">options</a>.</li>
5140-
<li>Fulfill the <var>promise</var> passing <var>expanded output</var>
5140+
<li>Resolve the <var>promise</var> with <var>expanded output</var>
51415141
<span class="changed">transforming <var>expanded output</var> from the
51425142
<a>internal representation</a> to a JSON serialization</span>.</li>
51435143
</ol>
@@ -5183,7 +5183,7 @@ <h3>The <dfn>JsonLdProcessor</dfn> Interface</h3>
51835183
and if passed, the <a data-link-for="JsonldOptions">compactArrays</a>
51845184
<span class="changed">and <a data-link-for="JsonldOptions">ordered</a></span>
51855185
flags in <a data-lt="jsonldprocessor-compact-options">options</a>.</li>
5186-
<li>Fulfill the <var>promise</var> passing <var>flattened output</var>
5186+
<li>Resolve the <var>promise</var> with <var>flattened output</var>
51875187
<span class="changed">transforming <var>flattened output</var> from the
51885188
<a>internal representation</a> to a JSON serialization</span>.</li>
51895189
</ol>
@@ -5265,7 +5265,7 @@ <h3>The <dfn>JsonLdProcessor</dfn> Interface</h3>
52655265
as is the support for <a>generalized RDF Datasets</a>
52665266
and thus the <a data-link-for="JsonLdOptions">produceGeneralizedRdf</a> option may be also be removed.</div>
52675267
</li>
5268-
<li>Fulfill the <var>promise</var> passing <var>dataset</var>.</li>
5268+
<li>Resolve the <var>promise</var> with <var>dataset</var>.</li>
52695269
</ol>
52705270

52715271
<dl class="parameters">
@@ -5538,8 +5538,8 @@ <h3>LoadDocumentCallback</h3>
55385538

55395539
<p>The <dfn>LoadDocumentCallback</dfn> defines a callback that custom document loaders
55405540
have to implement to be used to retrieve remote documents and contexts.
5541-
Upon successful completion, the callback returns a <a>Promise</a> containing a <a>RemoteDocument</a>.
5542-
On failure, the Promise is rejected with an appropriate error <a data-link-for="JsonLdError">code</a>.</p>
5541+
The callback returns a <a>Promise</a> resolving to a <a>RemoteDocument</a>.
5542+
On failure, the <a>Promise</a> is rejected with an appropriate error <a data-link-for="JsonLdError">code</a>.</p>
55435543

55445544
<pre class="idl" data-transform="unComment"><!--
55455545
callback LoadDocumentCallback = Promise&lt;RemoteDocument> (
@@ -5666,7 +5666,7 @@ <h3>LoadDocumentCallback</h3>
56665666
the returned <a>Content-Type</a> (without parameters) as <a data-link-for="RemoteDocument">contentType</a>,
56675667
any returned <code>profile</code> parameter,
56685668
and any <var>contextUrl</var>.</li>
5669-
<li>Fulfill the <var>promise</var> passing <var>remote document</var>.</li>
5669+
<li>Resolve the <var>promise</var> with <var>remote document</var>.</li>
56705670
</ol>
56715671

56725672
<p class="note">A custom <a>LoadDocumentCallback</a> set via the

0 commit comments

Comments
 (0)