[whatwg] [WF2] form.submit() should not throw if form is invalid

On Thu, 10 Jan 2008, Hallvord R M Steen wrote:
>
> I think some changes are required to make WF2 more web-compatible. In 
> particular, we need a clean way JS can override WF2's validation. 
> Cancelling an invalid event just prevents the UA's built-in message - we 
> need something that makes submission happen anyway.
> 
> The best candidate is the submit() method - if we drop the requirement 
> that it throws an error if the form is invalid. As specified, WF2 breaks 
> *a lot* of pages which use custom JS libraries for validation, trigger 
> WF2 rules by coincidence and expect to be able to submit forms with 
> form.submit().

Done.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Saturday, 1 November 2008 15:03:02 UTC