Bug 52565

Summary: HTMLFormElement::checkValidity() returns incorrect result if 'invalid' events are canceled.
Product: WebKit Reporter: Kent Tamura <tkent>
Component: FormsAssignee: Kent Tamura <tkent>
Status: RESOLVED FIXED    
Severity: Major CC: abarth, adele, darin, dglazkov, eric, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 28649    
Attachments:
Description Flags
Patch none

Description Kent Tamura 2011-01-17 03:43:34 PST
HTMLFromElement::checkValidity() returns incorrect result if 'invalid' events are canceled.
Comment 1 Kent Tamura 2011-01-17 03:54:55 PST
Created attachment 79150 [details]
Patch
Comment 2 Kent Tamura 2011-01-17 03:57:23 PST
The specification [1] says HTMLFormElement::checkValidity() result should check existence of invalid controls, not unhandled invalid controls.

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#constraint-validation
Comment 3 Dimitri Glazkov (Google) 2011-01-25 17:53:18 PST
Comment on attachment 79150 [details]
Patch

ok.
Comment 4 Kent Tamura 2011-01-25 20:01:05 PST
Landed: http://trac.webkit.org/changeset/76663
Comment 5 WebKit Review Bot 2011-01-25 20:53:51 PST
http://trac.webkit.org/changeset/76663 might have broken Leopard Intel Release (Tests)