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

Kent Tamura
Reported 2011-01-17 03:43:34 PST
HTMLFromElement::checkValidity() returns incorrect result if 'invalid' events are canceled.
Attachments
Patch (11.10 KB, patch)
2011-01-17 03:54 PST, Kent Tamura
no flags
Kent Tamura
Comment 1 2011-01-17 03:54:55 PST
Kent Tamura
Comment 2 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
Dimitri Glazkov (Google)
Comment 3 2011-01-25 17:53:18 PST
Comment on attachment 79150 [details] Patch ok.
Kent Tamura
Comment 4 2011-01-25 20:01:05 PST
WebKit Review Bot
Comment 5 2011-01-25 20:53:51 PST
http://trac.webkit.org/changeset/76663 might have broken Leopard Intel Release (Tests)
Note You need to log in before you can comment on or make changes to this bug.