@@ -5456,6 +5456,12 @@ <h3>Algorithm</h3>
5456
5456
< li > Initialize < var > converted value</ var > to < var > value</ var > .</ li >
5457
5457
< li > Initialize < var > type</ var > to < code > null</ code > </ li >
5458
5458
< li > If < a data-link-for ="JsonLdOptions "> useNativeTypes</ a > is < code > true</ code >
5459
+ < div class ="candidate correction " id ="change_5 ">
5460
+ < span class ="marker "> Candidate Correction 5</ span >
5461
+ < p > This changes the behavior of using native numbers when < a data-link-for ="JsonLdOptions "> useNativeTypes</ a > is `true`.
5462
+ For more information, refer to < a href ="https://github.com/w3c/json-ld-api/issues/555 "> issue 555</ a > .
5463
+ </ p >
5464
+ </ div >
5459
5465
< ol >
5460
5466
< li > If the
5461
5467
< a > datatype IRI</ a >
@@ -5477,30 +5483,30 @@ <h3>Algorithm</h3>
5477
5483
< code > xsd:double</ code > and its
5478
5484
< a > lexical form</ a >
5479
5485
is a valid < code > xsd:integer</ code > or < code > xsd:double</ code >
5480
- according to [[XMLSCHEMA11-2]]:
5481
- < ol >
5482
- < li >
5483
- < ins >
5486
+ according to [[XMLSCHEMA11-2]]< del cite ="#change_5 "> ,
5487
+ set < var > converted value</ var >
5488
+ to the result of converting the
5489
+ < a > lexical form</ a >
5490
+ to a JSON < a > number</ a > .
5491
+ </ del > < ins cite ="#change_5 "> :
5492
+ < ol >
5493
+ < li >
5484
5494
Attempt to convert the < a > lexical form</ a > to a < a > JSON number</ a >
5485
5495
according to
5486
5496
[[RFC8785]] < a data-cite ="RFC8785#name-serialization-of-numbers ">
5487
5497
JSON Serialization Scheme (JCS) 3.2.2.3 Serialization of Numbers
5488
5498
</ a > procedure.
5489
- </ ins >
5490
- </ li >
5491
- < li >
5492
- < ins >
5499
+ </ li >
5500
+ < li >
5493
5501
If the conversion is successful, set < var > converted value</ var >
5494
5502
to its result.
5495
- </ ins >
5496
- </ li >
5497
- < li >
5498
- < ins >
5503
+ </ li >
5504
+ < li >
5499
5505
Otherwise, set < var > type</ var > to < a > datatype IRI</ a >
5500
5506
of < var > value</ var > .
5501
- </ ins >
5502
- </ li >
5503
- </ ol >
5507
+ </ li >
5508
+ </ ol >
5509
+ </ ins >
5504
5510
</ li >
5505
5511
</ ol >
5506
5512
</ li >
@@ -7077,6 +7083,9 @@ <h2>Change log</h2>
7077
7083
< a data-cite ="JSON-LD11#embedding-json-ld-in-html-documents "> Embedding JSON-LD in HTML Documents</ a > [[JSON-LD11]]
7078
7084
for treating script elements as a single document,
7079
7085
as described in < a href ="#change_4 "> Candidate Correction 4</ a > .</ li >
7086
+ < li > 2025-01-25: Correct some corner cases in transforming RDF Number Literals
7087
+ to JSON numbers when < a data-link-for ="JsonLdOptions "> useNativeTypes</ a > is `true`,
7088
+ as described in < a href ="#change_5 "> Candidate Correction 5</ a > .</ li >
7080
7089
< li > 2024-01-25: Change processing step for < a > LoadDocumentCallback</ a >
7081
7090
to not presume that the content type is for JSON,
7082
7091
as described in < a href ="#change_6 "> Candidate Correction 6</ a > </ li >
0 commit comments