IE9 Beta Support for Local Storage

Does anyone know if the current Beta IE9 fully supports HTML5 "localStorage" functionality? Typically, a test to support "localStorage" can be performed using js code, like:

try {
    return  ('localStorage' in window) && window['localStorage'] !== null;
} catch (e) {
    return false;
}

Well, it looks like this type of test returns "true", but if you try something like:

localStorage.removeItem ('key')

an error appears in the Javascript Console (error SCRIPT16389). Additional Information?

+3
source share
4 answers

Not quite sure what the problem is, because it localstorageworks in IE since version 8 . Cm:

http://msdn.microsoft.com/en-us/library/cc197062%28VS.85%29.aspx
http://www.quirksmode.org/dom/html5.html

, : http://jsbin.com/ijega3/edit

+4

, true, , : window['localStorage'] "undefined". : window['localStorage'] != null ( != undefined), false.

(9.0.8112.16421IC) IE9, , localStorage.

+3

(HTML5) -.

PS: IE9 - Trident 5.0. ( EricLaw -MSFT- ).

0
source

Source: https://habr.com/ru/post/1766173/


All Articles