https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 83f41fa104eaf113509fffb10504b9afcba5b7e8 authored by Simon Pieters on 18 August 2016, 21:50:33 UTC
innerText setter should replace existing text node
Tip revision: 83f41fa
document-domain.html
<!doctype html>
<title>localStorage and document.domain</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<iframe></iframe>
<script>
  async_test(function(t) {
    frames[0].addEventListener("storage", function(e) {
      t.step(function() {
        localStorage.clear()
        t.done()
      })
    })
    frames[0].document.domain = document.domain
    localStorage.setItem("test", "test")
  })
</script>
back to top