| <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> |
| |