@@ -485,9 +485,7 @@ <h1>Features</h1>
485
485
< a > strings</ a > , < a > numbers</ a > , < a > booleans</ a > , and < a > null</ a > to describe
486
486
the data represented by a JSON document. Algorithms act on this
487
487
< 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 >
491
489
492
490
< p > JSON-LD uses < a > contexts</ a > to allow Linked Data
493
491
to be expressed in a way that is specifically tailored to a particular
@@ -6566,12 +6564,21 @@ <h3>LoadDocumentCallback</h3>
6566
6564
< p class ="note "> The HTTP Link Header is ignored for documents served as < code > application/ld+json</ code > ,
6567
6565
< code > text/html</ code > , or < code > application/xhtml+xml</ code > .</ p >
6568
6566
</ 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
6570
6568
< code > application/json</ code > ,
6571
6569
< code > application/ld+json</ code > ,
6572
6570
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 >
6575
6582
< li > Create a new < a > RemoteDocument</ a > < var > remote document</ var > using
6576
6583
< var > url</ var > as {{RemoteDocument/documentUrl}},
6577
6584
< var > document</ var > as {{RemoteDocument/document}},
@@ -7049,10 +7056,13 @@ <h2>Change log</h2>
7049
7056
< a data-cite ="JSON-LD11#embedding-json-ld-in-html-documents "> Embedding JSON-LD in HTML Documents</ a > [[JSON-LD11]]
7050
7057
for treating script elements as a single document,
7051
7058
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
7053
7063
for alternative formats,
7054
7064
as described in < a href ="#change_7 "> Candidate Correction 7</ a > </ li >
7055
- </ ul >
7065
+ </ ul >
7056
7066
</ details >
7057
7067
7058
7068
< details id ="changes-from-pr ">
0 commit comments