title: HTML5 local storage not saving between page refreshes
body: <p>I am using HTML5 local storage for the first time using FF5. I have the below javascript, it should save a string into local storage, however when the page is reloaded there isn't any values in local storage. What am I doing wrong? Why is 'foo' not populated on the pages sedond load?</p>
  
  <pre><code> &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&lt;/script&gt;
  
  &lt;script&gt;
  $(document).ready(function() {
  
  if (!localStorage) {return false; }
  
  var foo = localStorage.getItem("key1");
  
  if (foo != null)
  {
     document.getByName("identifier").value = foo;
  }
  
  localStorage["key1"] = "value1";
  
  });
  &lt;/script&gt;
  </code></pre>