[whatwg] [wf2] form submission algorithm questions

Kristof Zelechovski giecrilj at stegny.2a.pl
Mon Apr 16 00:27:31 PDT 2007

What do you mean by "rinse"?  Only the end user is in position to make the
necessary corrections if the input is invalid.  Any interaction with the
user should not be executed inside a loop because it is a frustrating
experience where you do not know where you are, what you are operating on
and how to get out of this mess (reminds me of Emacs recursive edit mode) so
that "repeat" afterwards really does not make sense.  After the user feels
ho is ready, ho can resubmit, triggering another event thereby.

-----Original Message-----
From: whatwg-bounces at lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Benjamin West
Sent: Monday, April 16, 2007 12:11 AM
To: WHAT Working Group Mailing List
Subject: [whatwg] [wf2] form submission algorithm questions

I suggest something like:

1.) Step One:     a new event "onvalidate" is dispatched
2.) Step Two:     Identify form controls.
3.) Step Three:   build form data set.
4.) Step Four:    encode data set.
5.) Step Five:    submit data set to validation URI.
6.) Step Six:     dispatch recieved
7.) Step Seven:   process validation results
  if response indicates validity->
   Submit using steps 2 - 8 of original algorithm.
  if response indicates invalid input->
   rinse and repeat


More information about the whatwg mailing list