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: | Forms | Assignee: | Kent Tamura <tkent> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
| Bug Depends on: | 74909 | ||
| Bug Blocks: | |||
Kent Tamura
<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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Kent Tamura
The behavior was fixed by http://trac.webkit.org/changeset/105710