[Webkit-unassigned] [Bug 10486] New: Deeply cloned nodes w/forms have invalid form elements

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Fri Aug 18 12:32:33 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=10486

           Summary: Deeply cloned nodes w/forms have invalid form elements
           Product: WebKit
           Version: 419.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: tom.duffey at gmail.com


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>


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list