Skip to content

Commit 7bccd8a

Browse files
#555 If useNativeTypes is true but an RDF number cannot be converted to JSON number, fall back to default logic
1 parent 4fd6879 commit 7bccd8a

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

index.html

+15-5
Original file line numberDiff line numberDiff line change
@@ -5477,13 +5477,23 @@ <h3>Algorithm</h3>
54775477
<code>xsd:double</code> and its
54785478
<a>lexical form</a>
54795479
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>
5480+
according to [[XMLSCHEMA11-2]],
5481+
<ol>
5482+
<li>attempt to convert the <a>lexical form</a> to a <a>JSON number</a>
5483+
according to
5484+
[[RFC8785]] <a data-cite="RFC8785#name-serialization-of-numbers">
5485+
JSON Serialization Scheme (JCS) 3.2.2.3 Serialization of Numbers
5486+
</a> procedure;
5487+
</li>
5488+
<li>
5489+
If the conversion is successful, set <var>converted value</var>
5490+
to its result.
5491+
</li>
5492+
</ol>
5493+
</li>
54845494
</ol>
54855495
</li>
5486-
<li class="changed">Otherwise, if <a>processing mode</a> is not `json-ld-1.0`,
5496+
<li class="changed">If <a>processing mode</a> is not `json-ld-1.0`,
54875497
and <var>value</var> is a <a>JSON literal</a>,
54885498
set <var>converted value</var> to the result of
54895499
turning the lexical value of <var>value</var>

0 commit comments

Comments
 (0)