Bug 76365 - A radio button should be "required" if one of a member of the same group has the "required" attribute.
Summary: A radio button should be "required" if one of a member of the same group has ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Kent Tamura
URL:
Keywords:
Depends on: 74909
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-15 22:17 PST by Kent Tamura
Modified: 2012-01-24 18:08 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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