Fix fromRDF: xsd:double and not xsd:decimal is converted to a native number
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Mon, 20 Aug 2012 12:41:24 +0200
changeset 832 3d0e8d4d245c
parent 831 4d7ec6084615
child 833 b8fc8e5225c3
Fix fromRDF: xsd:double and not xsd:decimal is converted to a native number
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Mon Aug 20 12:30:49 2012 +0200
+++ b/spec/latest/json-ld-api/index.html	Mon Aug 20 12:41:24 2012 +0200
@@ -2145,7 +2145,7 @@
               key <code>@type</code>, creating an entry in <em>value</em> if necessary.</li>
           </ol>
         </li>
-        
+
         <li>If <em>object</em> is a <tref>typed literal</tref> and the
           <code class="idlMemberName"><a href="#widl-JsonLdOptions-useNativeTypes">useNativeTypes</a></code>
           option is set to <tref>true</tref>:
@@ -2153,15 +2153,15 @@
             <li>Generate a <em>converted value</em>:
               <ol class="algorithm">
                 <li>If the literal's type is <code>xsd:boolean</code>, the
-                  <em>converted value</em> is <tref>true</tref> if the literal 
-                  matches the value <code>true</code> or <tref>false</tref> if 
+                  <em>converted value</em> is <tref>true</tref> if the literal
+                  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:decimal</code>, the <em>converted value</em> is the 
-                  JSON implementation's native 
+                  <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>
-                <li>Otherwise, do not perform a conversion. Set 
+                <li>Otherwise, do not perform a conversion. Set
                   the <em>converted value</em> to the <em>value</em>.</li>
               </ol>
             </li>