title: Does IE8 out-of-the-box have support for 'localStorage'
body: <p>I am trying to use the HTML5 feature <code>localStorage</code>. According to <a href="http://blogs.msdn.com/b/giorgio/archive/2009/11/29/ie8-and-html-5.aspx" rel="noreferrer">this blog</a> it can be done using IE8, however when I try to use it I get a javascript error <code>'localStorage is null or not an object'</code></p>
  
  <p>So my question: can <code>localStorage</code> be used by IE8 out-of-the-box? Here is my code:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=8" /&gt;
      &lt;title&gt;IE8 - DOM Storage&lt;/title&gt;
      &lt;script type="text/javascript"&gt; 
          function Save() {
              localStorage.setItem('key','value');            
          }        
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;        
      &lt;button onclick="Save();"&gt;
          Save
      &lt;/button&gt;  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>