Cannot set boolean values in LocalStorage?
<p>i noticed that i cannot set boolean values in <code>localStorage</code>?</p>

<pre><code>localStorage.setItem("item1", true);
alert(localStorage.getItem("item1") + " | " + (localStorage.getItem("item1") == true));
</code></pre>

<p>always alerts <code>true | false</code> when i try to test <code>localStorage.getItem("item1") == "true"</code> it alerts true ... so no way i can set an item in <code>localStorage</code> to true?</p>

<p>even if its a string, i thought only <code>===</code> will check the type? </p>

<p>so </p>

<pre><code>alert("true" == true); // shld be true? 
</code></pre>
