https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 203878e8f195402f12ec1a5ec0d9a3af70f95e62 authored by Simon Pieters on 18 August 2016, 21:15:08 UTC
Test that setting innerText on <br> etc doesn't throw
Tip revision: 203878e
unload-1.html
<!doctype html>
<html>
<head><title>Document</title></head>
<body>
<h1>Document</h1>
<script>
onload = function() {
  document.addEventListener("visibilitychange", onVisibilityChange, false);
  opener.postMessage("close", "*");
}

function onVisibilityChange() {
  opener.postMessage(document.visibilityState, "*");
}
</script>
</body>
</html>
back to top