summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/formmove2.html
blob: bdccf10030301180b50e871f4e5df95994708f5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<html>
<body>
<form id="a"><input type=radio name="one"></form>
<form id="b"><input type=radio name="one"><input type=text></form>
<script>
var v = document.getElementById('b');
document.body.removeChild(v);
document.getElementById('a').appendChild(v.elements[0]);
document.write("There should be two elements in the first form and one in the second. The count in form one is " + 
document.forms[0].elements.length + ", and the count in form two is " + v.elements.length + ".");
</script>
</body>
</html>