[Bug 16430] New: Please review the following: "4. If form is already being submitted...". Probably it would be better to introduce a "form's being-submitted" flag and set it to "true" between steps 6 and 7, then change item 4 to "If the form's being-submitted flag is set

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16430

           Summary: Please review the following: "4. If form is already
                    being submitted...". Probably it would be better to
                    introduce a "form's being-submitted" flag and set it
                    to "true" between steps 6 and 7, then change item 4 to
                    "If the form's being-submitted flag is set
           Product: HTML WG
           Version: unspecified
          Platform: Other
               URL: http://www.whatwg.org/specs/web-apps/current-work/#for
                    m-submission-algorithm
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: other Hixie drafts (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: contributor@whatwg.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, manish.tripathi.777@gmail.com


Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#form-submission-algorithm
Complete: http://www.whatwg.org/c#form-submission-algorithm

Comment:
Please review the following: "4. If form is already being submitted...".
Probably it would be better to introduce a "form's being-submitted" flag and
set it to "true" between steps 6 and 7, then change item 4 to "If the form's
being-submitted flag is set ... ".  Rationale: if we attempt to implement item
4 as described now, any event handler that calls "form.submit()" in response
to "submit" event will not make it to the actual submission (which is after
step 7), but instead will stop at item 4 (because the form would have already
been being submitted whenever such event handler calls "form.submit()").

Posted from: 82.192.88.2 by manish.tripathi.777@gmail.com
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101
Firefox/10.0.2

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 19 March 2012 07:15:29 UTC