@@ -5456,6 +5456,12 @@ <h3>Algorithm</h3>
54565456 < li > Initialize < var > converted value</ var > to < var > value</ var > .</ li >
54575457 < li > Initialize < var > type</ var > to < code > null</ code > </ li >
54585458 < 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 >
54595465 < ol >
54605466 < li > If the
54615467 < a > datatype IRI</ a >
@@ -5477,30 +5483,30 @@ <h3>Algorithm</h3>
54775483 < code > xsd:double</ code > and its
54785484 < a > lexical form</ a >
54795485 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 >
54845494 Attempt to convert the < a > lexical form</ a > to a < a > JSON number</ a >
54855495 according to
54865496 [[RFC8785]] < a data-cite ="RFC8785#name-serialization-of-numbers ">
54875497 JSON Serialization Scheme (JCS) 3.2.2.3 Serialization of Numbers
54885498 </ a > procedure.
5489- </ ins >
5490- </ li >
5491- < li >
5492- < ins >
5499+ </ li >
5500+ < li >
54935501 If the conversion is successful, set < var > converted value</ var >
54945502 to its result.
5495- </ ins >
5496- </ li >
5497- < li >
5498- < ins >
5503+ </ li >
5504+ < li >
54995505 Otherwise, set < var > type</ var > to < a > datatype IRI</ a >
55005506 of < var > value</ var > .
5501- </ ins >
5502- </ li >
5503- </ ol >
5507+ </ li >
5508+ </ ol >
5509+ </ ins >
55045510 </ li >
55055511 </ ol >
55065512 </ li >
@@ -7077,6 +7083,9 @@ <h2>Change log</h2>
70777083 < a data-cite ="JSON-LD11#embedding-json-ld-in-html-documents "> Embedding JSON-LD in HTML Documents</ a > [[JSON-LD11]]
70787084 for treating script elements as a single document,
70797085 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 >
70807089 < li > 2024-01-25: Change processing step for < a > LoadDocumentCallback</ a >
70817090 to not presume that the content type is for JSON,
70827091 as described in < a href ="#change_6 "> Candidate Correction 6</ a > </ li >
0 commit comments