@@ -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 behavior when using native numbers where < 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,10 +5483,31 @@ <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 [[XMLSCHEMA11-2]], set < var > converted value</ var >
5481
- to the result of converting the
5482
- < a > lexical form</ a >
5483
- to a JSON < a > number</ a > .</ li >
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 >
5494
+ Attempt to convert the < a > lexical form</ a > to a < a > JSON number</ a >
5495
+ according to the
5496
+ [[RFC8785]] < a data-cite ="RFC8785#name-serialization-of-numbers ">
5497
+ JSON Serialization Scheme (JCS) 3.2.2.3 Serialization of Numbers
5498
+ </ a > procedure.
5499
+ </ li >
5500
+ < li >
5501
+ If the conversion is successful, set < var > converted value</ var >
5502
+ to its result.
5503
+ </ li >
5504
+ < li >
5505
+ Otherwise, set < var > type</ var > to < a > datatype IRI</ a >
5506
+ of < var > value</ var > .
5507
+ </ li >
5508
+ </ ol >
5509
+ </ ins >
5510
+ </ li >
5484
5511
</ ol >
5485
5512
</ li >
5486
5513
< li class ="changed "> Otherwise, if < a > processing mode</ a > is not `json-ld-1.0`,
@@ -7056,6 +7083,9 @@ <h2>Change log</h2>
7056
7083
< a data-cite ="JSON-LD11#embedding-json-ld-in-html-documents "> Embedding JSON-LD in HTML Documents</ a > [[JSON-LD11]]
7057
7084
for treating script elements as a single document,
7058
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 >
7059
7089
< li > 2024-01-25: Change processing step for < a > LoadDocumentCallback</ a >
7060
7090
to not presume that the content type is for JSON,
7061
7091
as described in < a href ="#change_6 "> Candidate Correction 6</ a > </ li >
0 commit comments