Skip to content

Commit 3b0a95c

Browse files
committed
Add Candidate Correction marking, as this is a class-3 change.
1 parent 4cbaee9 commit 3b0a95c

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

index.html

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6420,12 +6420,21 @@ <h3>LoadDocumentCallback</h3>
64206420
<p class="note">The HTTP Link Header is ignored for documents served as <code>application/ld+json</code>,
64216421
<code>text/html</code>, or <code>application/xhtml+xml</code>.</p>
64226422
</li>
6423-
<li>Otherwise, if the retrieved document's <a>Content-Type</a> is neither
6423+
<li>Otherwise, <ins cite="#change_6">if</ins> the retrieved document's <a>Content-Type</a> is neither
64246424
<code>application/json</code>,
64256425
<code>application/ld+json</code>,
64266426
nor any other media type using a
6427-
<code>+json</code> suffix as defined in [[RFC6839]],
6428-
then reject the <var>promise</var> passing a <a data-link-for="JsonLdErrorCode">loading document failed</a> error.</li>
6427+
<code>+json</code> suffix as defined in [[RFC6839]]<del cite="#change_6">.
6428+
Reject</del><ins cite="#change_6">, then reject</ins>
6429+
the <var>promise</var> passing a <a data-link-for="JsonLdErrorCode">loading document failed</a> error.
6430+
<div class="candidate correction" id="change_6">
6431+
<span class="marker">Candidate Correction 6</span>
6432+
<p>This changes corrects the processing by not assuming that the
6433+
<a>Content-Type</a> is for JSON, but making processing conditional
6434+
on that <a>Content-Type</a>.
6435+
For more information, refer to <a href="https://github.com/w3c/json-ld-api/issues/622">issue 622</a>.</p>
6436+
</div>
6437+
</li>
64296438
<li>Create a new <a>RemoteDocument</a> <var>remote document</var> using
64306439
<var>url</var> as {{RemoteDocument/documentUrl}},
64316440
<var>document</var> as {{RemoteDocument/document}},
@@ -6903,6 +6912,12 @@ <h2>Change log</h2>
69036912
<a data-cite="JSON-LD11#embedding-json-ld-in-html-documents">Embedding JSON-LD in HTML Documents</a> [[JSON-LD11]]
69046913
for treating script elements as a single document,
69056914
as described in <a href="#change_4">Candidate Correction 4</a>.</li>
6915+
<li>2025-01-25: Correct some corner cases in transforming RDF Number Literals
6916+
to JSON numbers when <a data-link-for="JsonLdOptions">useNativeTypes</a> is `true`,
6917+
as described in <a href="#change_5">Candidate Correction 5</a>.</li>
6918+
<li>2024-01-25: Change processing step for <a>LoadDocumentCallback</a>
6919+
to not presume that the content type is for JSON,
6920+
as described in <a href="#change_6">Candidate Correction 6</a></li>
69066921
</ul>
69076922
</details>
69086923

0 commit comments

Comments
 (0)