From 5b237c1e5f3b1245331b15e4a3183e0644c8cc5e Mon Sep 17 00:00:00 2001
From: Michael Milton
Date: Sat, 14 Dec 2024 12:05:10 +1100
Subject: [PATCH 1/3] Fix issue 622
---
index.html | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/index.html b/index.html
index b79c2788..0829870f 100644
--- a/index.html
+++ b/index.html
@@ -6566,12 +6566,11 @@ LoadDocumentCallback
The HTTP Link Header is ignored for documents served as application/ld+json
,
text/html
, or application/xhtml+xml
.
- Otherwise, the retrieved document's Content-Type is neither
+ Otherwise, if the retrieved document's Content-Type is neither
application/json
,
application/ld+json
,
nor any other media type using a
- +json
suffix as defined in [[RFC6839]].
- Reject the promise passing a loading document failed error.
+ +json
suffix as defined in [[RFC6839]], reject the promise passing a loading document failed error.
Create a new RemoteDocument remote document using
url as {{RemoteDocument/documentUrl}},
document as {{RemoteDocument/document}},
From a17949022662853b52d038c7a97a7dbc273575af Mon Sep 17 00:00:00 2001
From: Michael Milton
Date: Thu, 16 Jan 2025 08:48:15 +1100
Subject: [PATCH 2/3] if... then
Co-authored-by: Ted Thibodeau Jr
---
index.html | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/index.html b/index.html
index 0829870f..88ac958c 100644
--- a/index.html
+++ b/index.html
@@ -6570,7 +6570,8 @@ LoadDocumentCallback
application/json
,
application/ld+json
,
nor any other media type using a
- +json
suffix as defined in [[RFC6839]], reject the promise passing a loading document failed error.
+ +json
suffix as defined in [[RFC6839]],
+ then reject the promise passing a loading document failed error.
Create a new RemoteDocument remote document using
url as {{RemoteDocument/documentUrl}},
document as {{RemoteDocument/document}},
From e97881b5acdf72316ab55c39d0cfe425993083f4 Mon Sep 17 00:00:00 2001
From: Gregg Kellogg
Date: Sat, 25 Jan 2025 15:29:56 -0800
Subject: [PATCH 3/3] Add Candidate Correction marking, as this is a class-3
change.
---
index.html | 26 ++++++++++++++++++--------
1 file changed, 18 insertions(+), 8 deletions(-)
diff --git a/index.html b/index.html
index 88ac958c..c966d7fb 100644
--- a/index.html
+++ b/index.html
@@ -485,9 +485,7 @@ Features
strings, numbers, booleans, and null to describe
the data represented by a JSON document. Algorithms act on this
internal representation with API entry points responsible for
- transforming between concrete representations and the internal representation.
- See
- for more details on transforming to or from the internal representation.
+ transforming between concrete internal representations.
JSON-LD uses contexts to allow Linked Data
to be expressed in a way that is specifically tailored to a particular
@@ -6566,12 +6564,21 @@
LoadDocumentCallback
The HTTP Link Header is ignored for documents served as application/ld+json
,
text/html
, or application/xhtml+xml
.
- Otherwise, if the retrieved document's Content-Type is neither
+ Otherwise, if the retrieved document's Content-Type is neither
application/json
,
application/ld+json
,
nor any other media type using a
- +json
suffix as defined in [[RFC6839]],
- then reject the promise passing a loading document failed error.
+ +json
suffix as defined in [[RFC6839]].
+ Reject, then reject
+ the promise passing a loading document failed error.
+
+
Candidate Correction 6
+
This changes corrects the processing by not assuming that the
+ Content-Type is for JSON, but making processing conditional
+ on that Content-Type.
+ For more information, refer to issue 622.
+
+
Create a new RemoteDocument remote document using
url as {{RemoteDocument/documentUrl}},
document as {{RemoteDocument/document}},
@@ -7049,10 +7056,13 @@ Change log
Embedding JSON-LD in HTML Documents [[JSON-LD11]]
for treating script elements as a single document,
as described in Candidate Correction 4.
- 2024-10-31: Abstract JSON serialization from WebIDL interfaces to allow
+ 2024-01-25: Change processing step for LoadDocumentCallback
+ to not presume that the content type is for JSON,
+ as described in Candidate Correction 6
+ 2024-10-31: Abstract JSON serialization from WebIDL interfaces to allow
for alternative formats,
as described in Candidate Correction 7
-
+