Bug 16337

Summary: REGRESSION: A radio button without a name cannot be triggered
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: FormsAssignee: 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">

Description Alexey Proskuryakov 2007-12-07 00:40:02 PST
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.
Comment 1 David Kilzer (:ddkilzer) 2007-12-07 04:25:49 PST
<rdar://problem/5635196>
Comment 2 David Kilzer (:ddkilzer) 2007-12-07 04:28:31 PST
Fails in the earliest WebKit nightly build, r11976, with Safari 2.0.4 (419.3) on Mac OS X 10.4.11 (8S165).

Comment 3 Rob Buis 2007-12-08 09:11:51 PST
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.
Comment 4 Alexey Proskuryakov 2007-12-08 09:45:30 PST
INVALID then.
Comment 5 David Kilzer (:ddkilzer) 2007-12-08 13:41:43 PST
http://trac.webkit.org/projects/webkit/changeset/20333

Bug 13087
Comment 6 Eric Seidel (no email) 2007-12-08 15:17:44 PST
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.
Comment 7 David Kilzer (:ddkilzer) 2007-12-08 15:30:02 PST
Adding Hixie for comment on Comment #6.

Comment 8 Ian 'Hixie' Hickson 2008-11-01 12:57:51 PDT
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.
Comment 9 Alexey Proskuryakov 2008-12-07 02:02:45 PST

*** This bug has been marked as a duplicate of 21534 ***
Comment 10 David Kilzer (:ddkilzer) 2008-12-07 04:29:13 PST
(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.