blob: d0855719311c44cb21a60d0d02418358766c4f1e [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
</head>
<body>
<canvas>
<div id="node1">
<div id="node2">
</canvas>
<script>
document.getElementById("node2").setAttribute("aria-label", "Label");
document.implementation.createDocument("", "", null).adoptNode(node1);
gc();
alert("This test makes sure that adopting a node with an AccessibilityObject into a new document doesn't crash. Test passed.");
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>