Clone a node with a form and that form's elements array is always empty. Similar to Bug 10188. Test case: <html> <head> <script type="text/javascript"> function test() { var form = document.getElementById("testForm"); alert("Original elements.length: " + form.elements.length); var clone = form.cloneNode(true); alert("Clone elements.length: " + clone.elements.length); } </script> </head> <body> <form action="" id="testForm"> <input name="foo" type="text" value=""/> </form> <a href="javascript:test();">clone form and count elements</a> </body> </html>
I cannot reproduce this with nightly r18858. I suppose that the fix for bug 10188 fixed this, too.