Bug 16337
| Summary: | REGRESSION: A radio button without a name cannot be triggered | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> |
| Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | ddkilzer, ian |
| Priority: | P1 | Keywords: | HasReduction, InRadar, Regression |
| Version: | 420+ | ||
| Hardware: | Mac | ||
| OS: | OS X 10.4 | ||
| URL: | data:text/html,<input type="radio"> | ||
Alexey Proskuryakov
Follow-up from bug 16273.
Steps to reproduce:
1. Open the bug URL.
2. Try to click the radio button.
Results: it is highlighted on mouse down, but never triggered.
Works in Firefox, works in Safari 2.0.4, fails in Safari 3.0.4 and TOT.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
David Kilzer (:ddkilzer)
<rdar://problem/5635196>
David Kilzer (:ddkilzer)
Fails in the earliest WebKit nightly build, r11976, with Safari 2.0.4 (419.3) on Mac OS X 10.4.11 (8S165).
Rob Buis
It seems this is done for winIE compability, see line 1047 of HTMLInputElement:
1047 return 0; // Match WinIE and don't allow unnamed radio b uttons to be checked.
1048 // Checked buttons just stay checked.
See also test fast/forms/radio_checked_name.html.
Cheers,
Rob.
Alexey Proskuryakov
INVALID then.
David Kilzer (:ddkilzer)
http://trac.webkit.org/projects/webkit/changeset/20333
Bug 13087
Eric Seidel (no email)
I'm not sure this is really the correct behavior for XHTML... maybe. I guess we should make sure this is part of the HTML5 spec.
David Kilzer (:ddkilzer)
Adding Hixie for comment on Comment #6.
Ian 'Hixie' Hickson
IE8 doesn't do this, so I'm not going to make the spec say to do it either. Mozilla and Opera don't do it.
Alexey Proskuryakov
*** This bug has been marked as a duplicate of 21534 ***
David Kilzer (:ddkilzer)
(In reply to comment #8)
> IE8 doesn't do this, so I'm not going to make the spec say to do it either.
> Mozilla and Opera don't do it.
Hixie, apparently IE7 and IE8 do this now. See Bug 21534 Comment #5.