html5/spec Overview.html,1.1743,1.1744

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv17445

Modified Files:
	Overview.html 
Log Message:
Explain parseInt() usage. (credit: pt) (whatwg r2573)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1743
retrieving revision 1.1744
diff -u -d -r1.1743 -r1.1744
--- Overview.html	24 Dec 2008 12:17:55 -0000	1.1743
+++ Overview.html	24 Dec 2008 12:20:12 -0000	1.1744
@@ -31366,6 +31366,10 @@
   document.getElementById('count').textContent = localStorage.pageLoadCount;
 &lt;/script&gt;</pre>
 
+   <p>The use of <code title="">parseInt()</code> is needed when
+   dealing with numbers (integers in this case) because the storage
+   APIs are all string-based.</p>
+
   </div><p>Each site has its own separate storage area.<p>Storage areas (both session storage and local storage) store
   strings. To store structured data in a storage area, you must first
   convert it to a string.<h5 id=the-storage-interface><span class=secno>5.10.1.2 </span>The <code><a href=#storage-0>Storage</a></code> interface</h5><!-- XXX shouldn't we define somewhere how null values get handled

Received on Wednesday, 24 December 2008 12:20:23 UTC