Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /editing/crashtests/loading-different-page-in-iframe-while-iframe-sets-spellcheck-attr-from-load.html - WPT Dashboard Interop Dashboard
<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>