Bug 76365

Summary: A radio button should be "required" if one of a member of the same group has the "required" attribute.
Product: WebKit Reporter: Kent Tamura <tkent>
Component: FormsAssignee: Kent Tamura <tkent>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 74909    
Bug Blocks:    

Description Kent Tamura 2012-01-15 22:17:44 PST
<form>
 <input type=radio name=group1 required id=radio1>
 <input type=radio name=group1 id=radio2>
</form>

radio2 is always valid in WebKit because it has no "required". This is a behavior described in old HTML5 draft.

The current HTML specification says radio2 should be invalid because radio1 has required and there is no checked radio button in the group.
Comment 1 Kent Tamura 2012-01-24 18:08:17 PST
The behavior was fixed by http://trac.webkit.org/changeset/105710