summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/preserveFormDuringResidualStyle.html
blob: a2bc8b5eda86a86e5b70e5d5717aebe64db3aa38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<HTML>
<BODY>
<font>
    <center>
        <table>
            <TR>
                <form name="form" id="form" starget=_top action="/n/click.cgi">
                    <input id="mover" type=hidden name=d value=722001303>                
                    <TD>
                        <input type=image src="resources/apple.gif">
                        <input type=hidden name=q value="bar">
                    </TD>
                </form>
            </tr>
        </table>
</font>
</center>

<div id="result">Failed.</div>

<script>

var input = document.getElementById("mover");
if (input.form) {
    var div = document.getElementById("result");
    div.innerHTML = "Success! This test succeeds if the input named mover is not detached from its form when it is moved around in the DOM to come before the table."
}

</script>

</body>
</html>