Skip to content

Commit

Permalink
Add Candidate Correction marking, as this is a class-3 change.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Jan 25, 2025
1 parent 4cbaee9 commit 3b0a95c
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6420,12 +6420,21 @@ <h3>LoadDocumentCallback</h3>
<p class="note">The HTTP Link Header is ignored for documents served as <code>application/ld+json</code>,
<code>text/html</code>, or <code>application/xhtml+xml</code>.</p>
</li>
<li>Otherwise, if the retrieved document's <a>Content-Type</a> is neither
<li>Otherwise, <ins cite="#change_6">if</ins> the retrieved document's <a>Content-Type</a> is neither
<code>application/json</code>,
<code>application/ld+json</code>,
nor any other media type using a
<code>+json</code> suffix as defined in [[RFC6839]],
then reject the <var>promise</var> passing a <a data-link-for="JsonLdErrorCode">loading document failed</a> error.</li>
<code>+json</code> suffix as defined in [[RFC6839]]<del cite="#change_6">.
Reject</del><ins cite="#change_6">, then reject</ins>
the <var>promise</var> passing a <a data-link-for="JsonLdErrorCode">loading document failed</a> error.
<div class="candidate correction" id="change_6">
<span class="marker">Candidate Correction 6</span>
<p>This changes corrects the processing by not assuming that the
<a>Content-Type</a> is for JSON, but making processing conditional
on that <a>Content-Type</a>.
For more information, refer to <a href="https://github.com/w3c/json-ld-api/issues/622">issue 622</a>.</p>
</div>
</li>
<li>Create a new <a>RemoteDocument</a> <var>remote document</var> using
<var>url</var> as {{RemoteDocument/documentUrl}},
<var>document</var> as {{RemoteDocument/document}},
Expand Down Expand Up @@ -6903,6 +6912,12 @@ <h2>Change log</h2>
<a data-cite="JSON-LD11#embedding-json-ld-in-html-documents">Embedding JSON-LD in HTML Documents</a> [[JSON-LD11]]
for treating script elements as a single document,
as described in <a href="#change_4">Candidate Correction 4</a>.</li>
<li>2025-01-25: Correct some corner cases in transforming RDF Number Literals
to JSON numbers when <a data-link-for="JsonLdOptions">useNativeTypes</a> is `true`,
as described in <a href="#change_5">Candidate Correction 5</a>.</li>
<li>2024-01-25: Change processing step for <a>LoadDocumentCallback</a>
to not presume that the content type is for JSON,
as described in <a href="#change_6">Candidate Correction 6</a></li>
</ul>
</details>

Expand Down

0 comments on commit 3b0a95c

Please sign in to comment.