summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/loading-different-page-in-iframe-while-iframe-sets-spellcheck-attr-from-load.html
blob: afddac34e19d429cc8b533337d84e5d6cc6f5a01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<html>
<head>
<script>
function crash() {
  document.querySelector("iframe").onload = null;
  document.querySelector("iframe").srcdoc = "2nd page";
}
</script>
</head>
<body onload="crash()">
  <iframe srcdoc="<html><body onload=$quot;document.body.setAttribute('spellcheck', true);$quot;></body></html>"></iframe>
</body>
</html>