- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 16 Sep 2009 00:10:17 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/webstorage In directory hutz:/tmp/cvs-serv13212 Modified Files: Overview.html Log Message: Fix example now that Storage is no longer string-based. (whatwg r3866) Index: Overview.html =================================================================== RCS file: /sources/public/html5/webstorage/Overview.html,v retrieving revision 1.77 retrieving revision 1.78 diff -u -d -r1.77 -r1.78 --- Overview.html 14 Sep 2009 10:58:31 -0000 1.77 +++ Overview.html 16 Sep 2009 00:10:14 -0000 1.78 @@ -331,17 +331,11 @@ <script> if (!localStorage.pageLoadCount) localStorage.pageLoadCount = 0; - localStorage.pageLoadCount = parseInt(localStorage.pageLoadCount, 10) + 1; + localStorage.pageLoadCount += 1; document.getElementById('count').textContent = localStorage.pageLoadCount; </script></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.<h2 id="conformance-requirements"><span class="secno">2 </span>Conformance requirements</h2><p>All diagrams, examples, and notes in this specification are + </div><p>Each site has its own separate storage area.<h2 id="conformance-requirements"><span class="secno">2 </span>Conformance requirements</h2><p>All diagrams, examples, and notes in this specification are non-normative, as are all sections explicitly marked non-normative. Everything else in this specification is normative.<p>The key words "MUST", "MUST NOT", "REQUIRED", <!--"SHALL", "SHALL NOT",--> "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and
Received on Wednesday, 16 September 2009 00:10:25 UTC