Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / id-attribute-with-namespace-crash.html
blobae1142a686d826e1248f5c83b115ad877859682b
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
9 gc = window.gc || function()
11 if (window.GCController)
12 return GCController.collect();
14 for (var i = 0; i < 10000; ++i)
15 var s = new String("AAAA");
18 window.onload = function()
20 element = document.body.appendChild(document.createElement("a"));
22 element.setAttributeNS("namespace", "id", "foo");
23 element.setAttribute("id", "bar");
25 document.body.removeChild(element);
26 element = null;
27 gc();
29 setTimeout(finishTest, 0);
32 finishTest = function()
34 document.getElementById("bar");
36 if (window.testRunner)
37 testRunner.notifyDone();
39 </script>
40 </head>
41 <body>PASS</body>
42 </html>