@@ -485,9 +485,7 @@
Features
485
485
< a > stringsa > , < a > numbersa > , < a > booleansa > , and < a > nulla > to describe
486
486
the data represented by a JSON document. Algorithms act on this
487
487
< a > internal representationa > with API entry points responsible for
488
- transforming between concrete representations and the < a > internal representationa > .
489
- See < a href ="#internal-representation-in-implementations " class ="sectionRef "> a >
490
- for more details on transforming to or from the < a > internal representationa > .p >
488
+ transforming between concrete < a > internal representationsa > .p >
491
489
492
490
< p > JSON-LD uses < a > contextsa > to allow Linked Data
493
491
to be expressed in a way that is specifically tailored to a particular
@@ -6566,12 +6564,21 @@
LoadDocumentCallback
6566
6564
< p class ="note "> The HTTP Link Header is ignored for documents served as < code > application/ld+jsoncode > ,
6567
6565
< code > text/htmlcode > , or < code > application/xhtml+xmlcode > .p >
6568
6566
li >
6569
- < li > Otherwise, the retrieved document's < a > Content-Typea > is neither
6567
+ < li > Otherwise, < ins cite =" #change_6 " > if ins > the retrieved document's < a > Content-Typea > is neither
6570
6568
< code > application/jsoncode > ,
6571
6569
< code > application/ld+jsoncode > ,
6572
6570
nor any other media type using a
6573
- < code > +jsoncode > suffix as defined in [[RFC6839]].
6574
- Reject the < var > promisevar > passing a < a data-link-for ="JsonLdErrorCode "> loading document faileda > error.li >
6571
+ < code > +jsoncode > suffix as defined in [[RFC6839]]< del cite ="#change_6 "> .
6572
+ Rejectdel > < ins cite ="#change_6 "> , then rejectins >
6573
+ the < var > promisevar > passing a < a data-link-for ="JsonLdErrorCode "> loading document faileda > error.
6574
+ < div class ="candidate correction " id ="change_6 ">
6575
+ < span class ="marker "> Candidate Correction 6span >
6576
+ < p > This changes corrects the processing by not assuming that the
6577
+ < a > Content-Typea > is for JSON, but making processing conditional
6578
+ on that < a > Content-Typea > .
6579
+ For more information, refer to < a href ="https://github.com/w3c/json-ld-api/issues/622 "> issue 622a > .p >
6580
+ div >
6581
+ li >
6575
6582
< li > Create a new < a > RemoteDocumenta > < var > remote documentvar > using
6576
6583
< var > urlvar > as {{RemoteDocument/documentUrl}},
6577
6584
< var > documentvar > as {{RemoteDocument/document}},
@@ -7049,10 +7056,13 @@
Change log
7049
7056
< a data-cite ="JSON-LD11#embedding-json-ld-in-html-documents "> Embedding JSON-LD in HTML Documentsa > [[JSON-LD11]]
7050
7057
for treating script elements as a single document,
7051
7058
as described in < a href ="#change_4 "> Candidate Correction 4a > .li >
7052
- < li > 2024-10-31: Abstract JSON serialization from WebIDL interfaces to allow
7059
+ < li > 2024-01-25: Change processing step for < a > LoadDocumentCallbacka >
7060
+ to not presume that the content type is for JSON,
7061
+ as described in < a href ="#change_6 "> Candidate Correction 6a > 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 7a > li >
7055
- ul >
7065
+ ul >
7056
7066
details >
7057
7067
7058
7068
< details id ="changes-from-pr ">
0 commit comments