@@ -6420,12 +6420,21 @@ <h3>LoadDocumentCallback</h3>
6420
6420
< p class ="note "> The HTTP Link Header is ignored for documents served as < code > application/ld+json</ code > ,
6421
6421
< code > text/html</ code > , or < code > application/xhtml+xml</ code > .</ p >
6422
6422
</ 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
6424
6424
< code > application/json</ code > ,
6425
6425
< code > application/ld+json</ code > ,
6426
6426
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 >
6429
6438
< li > Create a new < a > RemoteDocument</ a > < var > remote document</ var > using
6430
6439
< var > url</ var > as {{RemoteDocument/documentUrl}},
6431
6440
< var > document</ var > as {{RemoteDocument/document}},
@@ -6903,6 +6912,12 @@ <h2>Change log</h2>
6903
6912
< a data-cite ="JSON-LD11#embedding-json-ld-in-html-documents "> Embedding JSON-LD in HTML Documents</ a > [[JSON-LD11]]
6904
6913
for treating script elements as a single document,
6905
6914
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 >
6906
6921
</ ul >
6907
6922
</ details >
6908
6923
0 commit comments