blob: e04827a128511aed88fb84274ca886d898a94b4a [file] [log] [blame]
robert@webkit.org8f6be6b2012-01-17 02:25:52 +00001<html>
2<head>
3<style>
4.c0 { display: table-caption; width: 0px; }
5.c7 { float: right; padding-right: 100px; padding-bottom: 100px;}
6</style>
7<script>
rniwa@webkit.org224c8b52012-08-04 01:13:22 +00008if (window.testRunner) {
9 testRunner.waitUntilDone();
robert@webkit.org8f6be6b2012-01-17 02:25:52 +000010}
11
12var nodes = Array();
13
14function tryToCrash()
15{
16 try { nodes[91].appendChild(nodes[39]); } catch(e) {}
rniwa@webkit.org224c8b52012-08-04 01:13:22 +000017 setTimeout('testRunner.notifyDone();',1000);
robert@webkit.org8f6be6b2012-01-17 02:25:52 +000018}
19
20function boom() {
21 try { nodes[8] = document.createElement('dfn'); } catch(e) {}
22 try { nodes[8].setAttribute('class', 'c7'); } catch(e) {}
23 try { nodes[30] = document.createElement('span'); } catch(e) {}
24 try { nodes[39] = document.createElement('strong'); } catch(e) {}
25 try { nodes[69] = document.createElement('header'); } catch(e) {}
26 try { nodes[39].appendChild(nodes[69]); } catch(e) {}
27 try { nodes[89] = document.createElement('nav'); } catch(e) {}
28 try { nodes[89].setAttribute('class', 'c0'); } catch(e) {}
29 try { document.documentElement.appendChild(nodes[89]); } catch(e) {}
30 try { nodes[91] = document.createElement('form'); } catch(e) {}
31 try { nodes[91].setAttribute('class', 'c0'); } catch(e) {}
32 try { document.documentElement.appendChild(nodes[91]); } catch(e) {}
33 try { nodes[89].appendChild(nodes[8]); } catch(e) {}
34 setTimeout('try { nodes[30].appendChild(nodes[89]); } catch(e) {}', 4);
35 setTimeout('tryToCrash();', 0);
36}
37</script>
38</head>
39<body onLoad="setTimeout('boom();',0)">
40Passes if it doesn't crash!
41</body>
42</html>