Load event must be fired only for the SVG structurally external elements and the...
[WebKit-https.git] / LayoutTests / fast / html / marquee-reparent-check.html
1 <!DOCTYPE HTML><!-- webkit-test-runner [ enableKeygenElement=true ] -->
2 <html>
3 <head>
4 <script src="../../resources/js-test-pre.js"></script>
5 </head>
6 <body>
7     <div id="divElement">
8     </div>
9     <marquee id="outerMarquee">
10         <output>
11             <base target="divElement"></base>
12         </output>
13     </marquee>
14     <a href="">
15         <textarea id="htmlTextArea" onfocus="focusHandler()" onblur="blurHandler()" autofocus="autofocus">Test Text Area</textarea>
16     </a>
17     <table id="testTable">
18         <tbody>
19             <tr>
20                 <th id="htmlTableHeader">
21                     <marquee id="innerMarquee">
22                         <svg>
23                             <mesh/>
24                         </svg>
25                     </marquee>
26                 </th>
27             </tr>
28         </tbody>
29     </table>
30     <keygen autofocus="autofocus">
31     <iframe>Test Frame</iframe>
32     <script>
33         if (window.testRunner)
34             testRunner.dumpAsText();
35
36         description("The test passes if it does not ASSERT in debug builds.");
37
38         var innerMarquee = document.getElementById("innerMarquee");
39         var outerMarquee = document.getElementById("outerMarquee");
40
41         document.execCommand("createLink", false, "#foo");
42         document.getElementById("htmlTableHeader").innerHTML = "TEST";
43
44         function blurHandler() {
45             document.getElementById("htmlTextArea").setSelectionRange(0, 0, "foo");
46         }
47
48         function focusHandler() {
49             document.getElementById("htmlTextArea").click();
50             innerMarquee.appendChild(outerMarquee);
51         }
52     </script>
53     <script src="../../resources/js-test-post.js"></script>
54 </body>
55 </html>