Skip to content

Commit 72f22a9

Browse files
committed
Make JsonLdCallback document optional, it's not passed if an error occurs
1 parent 9d539dd commit 72f22a9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

spec/WD/20130411/json-ld-api/diff-20120712.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39351,7 +39351,7 @@ <h2>
3935139351
JsonLdError
3935239352
</ins></code></a></span><span class="idlParamName"><ins class="diff-new">
3935339353
error
39354-
</ins></span></span>,<span class="idlParam"><span class="idlParamType"><ins class="diff-new">
39354+
</ins></span></span>,<span class="idlParam"><ins class="diff-new">optional </ins><span class="idlParamType"><ins class="diff-new">
3935539355
(
3935639356
</ins><a><ins class="diff-new">
3935739357
object

spec/WD/20130411/json-ld-api/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4369,7 +4369,7 @@ <h4 id="jsonldcallback">JsonLdCallback</h4>
43694369
<a href="#idl-def-JsonLdProcessor" class="idlType"><code>JsonLdProcessor</code></a> has been completed, either successfully or
43704370
by a fatal error.</p>
43714371

4372-
<pre class="idl"><span class="idlCallback" id="idl-def-JsonLdCallback">callback <span class="idlCallbackID">JsonLdCallback</span> = <span class="idlCallbackType"><a>void</a></span> (<span class="idlParam"><span class="idlParamType"><a href="#idl-def-JsonLdError" class="idlType"><code>JsonLdError</code></a></span> <span class="idlParamName">error</span></span>, <span class="idlParam"><span class="idlParamType">(<a>object</a> or <a>object[]</a>)</span> <span class="idlParamName">document</span></span>);</span></pre><div class="section"><h5 id="callback-jsonldcallback-parameters">Callback <a class="idlType" href="#idl-def-JsonLdCallback"><code>JsonLdCallback</code></a> Parameters</h5><dl class="callback-members"><dt id="widl-JsonLdCallback-error"><code>error</code> of type <span class="idlMemberType"><a href="#idl-def-JsonLdError" class="idlType"><code>JsonLdError</code></a></span></dt><dd>If the value is <a class="tref internalDFN" title="null" href="#dfn-null">null</a>, then no issue was detected
4372+
<pre class="idl"><span class="idlCallback" id="idl-def-JsonLdCallback">callback <span class="idlCallbackID">JsonLdCallback</span> = <span class="idlCallbackType"><a>void</a></span> (<span class="idlParam"><span class="idlParamType"><a class="idlType" href="#idl-def-JsonLdError"><code>JsonLdError</code></a></span> <span class="idlParamName">error</span></span>, <span class="idlParam">optional <span class="idlParamType"><a>(object or object[])</a></span> <span class="idlParamName">document</span></span>);</span></pre><section><h5 id="callback-jsonldcallback-parameters">Callback <a class="idlType" href="#idl-def-JsonLdCallback"><code>JsonLdCallback</code></a> Parameters</h5><dl class="callback-members"><dt id="widl-JsonLdCallback-error"><code>error</code> of type <span class="idlMemberType"><a class="idlType" href="#idl-def-JsonLdError"><code>JsonLdError</code></a></span></dt><dd>If the value is <a title="null" class="tref internalDFN" href="#dfn-null">null</a>, then no issue was detected
43734373
during processing. Otherwise, a processing error was detected and
43744374
the details are contained within the <em>error</em> object.</dd><dt id="widl-JsonLdCallback-document"><code>document</code> of type <span class="idlMemberType"><a>(object or object[])</a></span></dt><dd>The processed JSON-LD document.</dd></dl></div>
43754375
</div>

spec/latest/json-ld-api/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3943,7 +3943,7 @@ <h3>JsonLdCallback</h3>
39433943
<dd>If the value is <tref>null</tref>, then no issue was detected
39443944
during processing. Otherwise, a processing error was detected and
39453945
the details are contained within the <em>error</em> object.</dd>
3946-
<dt>(object or object[]) document</dt>
3946+
<dt>optional (object or object[]) document</dt>
39473947
<dd>The processed JSON-LD document.</dd>
39483948
</dl>
39493949
</section>

test-suite/idltest/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h1>idlharness test</h1>
3636
typedef (object or object[] or DOMString) JsonLdInput;
3737
typedef (object or DOMString) JsonLdContext;
3838

39-
callback JsonLdCallback = void (JsonLdError error, (object or object[]) document);
39+
callback JsonLdCallback = void (JsonLdError error, optional (object or object[]) document);
4040

4141
callback LoadContextCallback = void (DOMString url, ContextLoadedCallback callback);
4242

0 commit comments

Comments
 (0)