[Webkit-unassigned] [Bug 22091] New: Can't submit multiple forms via JavaScript

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 5 16:16:40 PST 2008


https://bugs.webkit.org/show_bug.cgi?id=22091

           Summary: Can't submit multiple forms via JavaScript
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jamieraut at gmail.com


Simple page, two iframes, two forms, each form targets an iframe. Trying to
submit both forms simultaneously via JavaScript will result in only the first
form being submitted, the second submit is ignored apparently.

The below functions as expected in Firefox 3.0.3 on Mac Intel OS X 10.5. The
second form submission fails when tested on the webkit nightly build from Nov 4
2008 (Version 3.1.2 [5525.20.1] in About Safari...), same OS/platform.

<html>
  <head>
    <script type="text/javascript">
      function submitBoth() {
          document.getElementById('form1').submit();
          document.getElementById('form2').submit();
      }
    </script>
  </head>
  <body>
    <form id="form1" method="get" target="frame1"
action="http://images.google.com/images">
          <input type="hidden" name="q" value="iced coffee"/>
    </form>
    <form id="form2" method="get" target="frame2"
action="http://isiticedcoffeeweather.com/">
    </form>
    <iframe name="frame1"></iframe><br/>
    <iframe name="frame2"></iframe><br/>
    <a href="javascript:submitBoth()">Submit 'em!</a>
  </body>
</html>


-- 
Configure bugmail: https://bugs.webkit.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