Skip to content

Commit f004001

Browse files
multimericTallTedgkellogg
authored
Fix issue 622 (#623)
* Fix issue 622 * if... then * Add Candidate Correction marking, as this is a class-3 change. --------- Co-authored-by: Ted Thibodeau Jr <[email protected]> Co-authored-by: Gregg Kellogg <[email protected]>
1 parent e9a9a01 commit f004001

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

index.html

+18-8
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,7 @@ <h1>Features</h1>
485485
<a>strings</a>, <a>numbers</a>, <a>booleans</a>, and <a>null</a> to describe
486486
the data represented by a JSON document. Algorithms act on this
487487
<a>internal representation</a> with API entry points responsible for
488-
transforming between concrete representations and the <a>internal representation</a>.
489-
See <a href="#internal-representation-in-implementations" class="sectionRef"></a>
490-
for more details on transforming to or from the <a>internal representation</a>.</p>
488+
transforming between concrete <a>internal representations</a>.</p>
491489

492490
<p>JSON-LD uses <a>contexts</a> to allow Linked Data
493491
to be expressed in a way that is specifically tailored to a particular
@@ -6566,12 +6564,21 @@ <h3>LoadDocumentCallback</h3>
65666564
<p class="note">The HTTP Link Header is ignored for documents served as <code>application/ld+json</code>,
65676565
<code>text/html</code>, or <code>application/xhtml+xml</code>.</p>
65686566
</li>
6569-
<li>Otherwise, the retrieved document's <a>Content-Type</a> is neither
6567+
<li>Otherwise, <ins cite="#change_6">if</ins> the retrieved document's <a>Content-Type</a> is neither
65706568
<code>application/json</code>,
65716569
<code>application/ld+json</code>,
65726570
nor any other media type using a
6573-
<code>+json</code> suffix as defined in [[RFC6839]].
6574-
Reject the <var>promise</var> passing a <a data-link-for="JsonLdErrorCode">loading document failed</a> error.</li>
6571+
<code>+json</code> suffix as defined in [[RFC6839]]<del cite="#change_6">.
6572+
Reject</del><ins cite="#change_6">, then reject</ins>
6573+
the <var>promise</var> passing a <a data-link-for="JsonLdErrorCode">loading document failed</a> error.
6574+
<div class="candidate correction" id="change_6">
6575+
<span class="marker">Candidate Correction 6</span>
6576+
<p>This changes corrects the processing by not assuming that the
6577+
<a>Content-Type</a> is for JSON, but making processing conditional
6578+
on that <a>Content-Type</a>.
6579+
For more information, refer to <a href="https://github.com/w3c/json-ld-api/issues/622">issue 622</a>.</p>
6580+
</div>
6581+
</li>
65756582
<li>Create a new <a>RemoteDocument</a> <var>remote document</var> using
65766583
<var>url</var> as {{RemoteDocument/documentUrl}},
65776584
<var>document</var> as {{RemoteDocument/document}},
@@ -7049,10 +7056,13 @@ <h2>Change log</h2>
70497056
<a data-cite="JSON-LD11#embedding-json-ld-in-html-documents">Embedding JSON-LD in HTML Documents</a> [[JSON-LD11]]
70507057
for treating script elements as a single document,
70517058
as described in <a href="#change_4">Candidate Correction 4</a>.</li>
7052-
<li>2024-10-31: Abstract JSON serialization from WebIDL interfaces to allow
7059+
<li>2024-01-25: Change processing step for <a>LoadDocumentCallback</a>
7060+
to not presume that the content type is for JSON,
7061+
as described in <a href="#change_6">Candidate Correction 6</a></li>
7062+
<li>2024-10-31: Abstract JSON serialization from WebIDL interfaces to allow
70537063
for alternative formats,
70547064
as described in <a href="#change_7">Candidate Correction 7</a></li>
7055-
</ul>
7065+
</ul>
70567066
</details>
70577067

70587068
<details id="changes-from-pr">

0 commit comments

Comments
 (0)