Why do HTML5 features like localStorage and sessionStorage work in IE7 Emulator mode in IE11?

点点圈 提交于 2020-01-04 06:28:26

问题


In Internet Explorer 11, I turn on IE7 Mode and test sessionStorage. I do

sessionStorage.put("someObject",someObject);

and then do

if(sessionStorage != null) {
        console.log(sessionStorage.get("someObject"));
}   

console.log(sessionStorage.get("someObject"));

It actually prints the value of the object out. Why is this?

来源:https://stackoverflow.com/questions/28022370/why-do-html5-features-like-localstorage-and-sessionstorage-work-in-ie7-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!