blob: 689310e5c092eb2849bac276972e66b0079bda62 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="../js/resources/js-test-pre.js"></script>
</head>
<body>
<script>
function runtest() {
q = document.getElementsByTagName('object')[0].contentDocument;
q.styleSheets[0].deleteRule(1);
q.getElementsByTagName('head')[0].cloneNode(true);
}
description("This test checks that mutating a stylesheet and then using cloneNode() in a subdocument doesn't cause a crash.");
</script>
<object data="resources/cloneNode-after-deleteRule-subdocument.html" onload="runtest()"/>
<script src="../js/resources/js-test-post.js"></script>
</body>
</html>