Make sure that the conversion to a native number is successful in fromRDF
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Mon, 20 Aug 2012 12:42:23 +0200
changeset 833 b8fc8e5225c3
parent 832 3d0e8d4d245c
child 834 763c3efe0635
Make sure that the conversion to a native number is successful in fromRDF

... if not, keep the expanded value.
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Mon Aug 20 12:41:24 2012 +0200
+++ b/spec/latest/json-ld-api/index.html	Mon Aug 20 12:42:23 2012 +0200
@@ -2157,10 +2157,10 @@
                   matches the value <code>true</code> or <tref>false</tref> if
                   the literal matches the value <code>false</code>.</li>
                 <li>If the literal's type is <code>xsd:integer</code> or
-                  <code>xsd:double</code>, the <em>converted value</em> is the
-                  JSON implementation's native
-                  JSON <tref>number</tref> representation format for the
-                  literal.</li>
+                  <code>xsd:double</code>, try to convert the literal to a
+                  JSON <tref>number</tref>. If the conversion is successful,
+                  store the result in <em>converted value</em>, otherwise
+                  set <em>converted value</em> to <em>value</em>.</li>
                 <li>Otherwise, do not perform a conversion. Set
                   the <em>converted value</em> to the <em>value</em>.</li>
               </ol>