[Webkit-unassigned] [Bug 7967] New: Cannot assign new properties to the object holding form elements sharing the same name

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Fri Mar 24 15:15:24 PST 2006


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

           Summary: Cannot assign new properties to the object holding form
                    elements sharing the same name
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: JavaScript
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: marco.wise at stanford.edu


It looks like IE and Firefox create a Nodelist to store multiple form inputs
that share the same name. They allow for properties of this data structure to
be set and retrieved. Safari (and Konqueror) seem to use something different
(probably a DOMNamedNodesCollection?) that cannot be assigned new properties
(adding properties fails silently).

This problem was encountered when using CGI::FormBuilder to build forms with
multiple submit buttons. CGI::FormBuilder's strategy is for these buttons to
share the same name (_submit) and their onclick event handler to set
_submit.value to the value of the button clicked. This value is retrievable in
IE and Firefox, but not Safari and Konqueror.

You can see the behaviour by going to:
http://www.formbuilder.org/ex/multiple_submits.pl
The validation code runs through even if you hit the cancel or delete buttons.


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