Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / id-attribute-shared.html
blobe97e859252da3a0113069e622025464f3b4d71fa
1 <html>
2 <head>
3 <script src="../../resources/gc.js"></script>
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
9 </script>
10 </head>
11 <body>
12 Running...
13 <script>
14 function runTest() {
15 bdo = document.createElement('bdo');
16 template1 = document.createElement('template');
17 node1 = document.importNode(bdo, false);
18 iframe = document.createElement('iframe');
19 document.body.appendChild(iframe);
20 template1content = template1.content;
21 node2 = document.importNode(node1, true);
22 template1content.appendChild(node2);
23 object1 = iframe.contentDocument.createElement('object');
24 document.body.appendChild(object1);
25 input = iframe.contentDocument.createElement('input');
26 document.body.appendChild(input);
27 noderef1 = input.parentElement;
28 node2.appendChild(noderef1);
29 embed = document.createElement('embed');
30 object1.id = 4294967294;
31 template2 = document.createElement('template');
32 object1.insertAdjacentElement("afterbegin", embed);
33 title = document.createElement('title');
34 title.appendChild(embed);
35 object2 = document.createElement('object');
36 object2.id = 'object10901';
37 template2content = template2.content;
38 object1.parentNode.removeChild(object1);
39 object1 = null;
40 textnode1 = document.createTextNode('');
41 node3 = document.importNode(textnode1, true);
42 object2.appendChild(node3);
43 template2content.appendChild(object2);
44 gc();
45 object2.cloneNode();
46 document.location='data:text/html,<body>PASS<script>if (window.testRunner) testRunner.notifyDone()</scr' + 'ipt></body>';
49 runTest();
50 </script>
51 </body>
52 </html>