I run Windows 7 and IE9, and I believe IE9 supports HTML5 Local Storage. But when I run this offline (locally) in IE9
Code:
<script type="text/javascript">
function testSupport() {
if (localStorage) {return "Local Storage: Supported"}
else {
return "Local Storage: NOT supported";
}
}
alert ( testSupport() );
</script>
I get "LocalStorage: NOT supported".
Chrome returns "Local Storage: Supported"
My DOCTYPE is <!DOCTYPE html>
Other tests also fail in IE. Example:
Code:
localStorage.setItem("name", "Hello World!");
alert(localStorage.getItem("name"));
Above works in Chrome.
Any advice, please? Have I not configured IE9 properly?