blob: 076677fcb8c5199afe5a97ec11f2eb5337048884 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<div id="console"></div>
<object data="data:image/svg+xml;base64,PFNWR1Rlc3RDYXNlIGlkPSJzIj4=" id="root" onload="test()"/>
<script>
function test() {
var foreignDocument = document.getElementById('root').contentDocument;
shadow = foreignDocument.getElementById('s').webkitCreateShadowRoot();
shouldThrow("document.adoptNode(shadow)");
location.reload();
}
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>