https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 0cb962b995d06ee5a8e581277aa7906b039563af authored by Anne van Kesteren on 29 March 2018, 12:32:41 UTC
document.open() and the load event
Tip revision: 0cb962b
local_set_item_iframe.html
<!DOCTYPE HTML>
<html>
 <body>
    <script>
        if (('localStorage' in window) && window.localStorage !== null){
            try {
                localStorage.setItem("name", "user1");
            } catch (e) {
                parent.fail("setItem method is failed.");
            }
        } else {
            parent.fail("localStorage is not supported.");
        }
    </script>
 </body>
</html>
back to top