Bug 103847

Summary: [test case] multiple radio buttons can be selected at once.
Product: [Applications] konqueror Reporter: Alexander Rødseth <rodseth>
Component: khtml formsAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: maksim, tilleyrw
Priority: NOR    
Version: 3.3.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: test case

Description Alexander Rødseth 2005-04-14 01:13:20 UTC
Version:           3.3.2 (using KDE 3.3.2,  (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-8)
OS:                Linux (i686) release 2.6.11wheee

From RFC 1866, about radio-buttons:
---
8.1.2.4. Radio Button: INPUT TYPE=RADIO

   An <INPUT> element with `TYPE=RADIO' represents a boolean choice. A
   set of such elements with the same name represents a 1-of-many choice
   field. The NAME and VALUE attributes are required as for check boxes.
   Optional attributes are:

    CHECKED
            indicates that the initial state is on.
   At all times, exactly one of the radio buttons in a set is checked.
   If none of the <INPUT> elements of a set of radio buttons specifies
   `CHECKED', then the user agent must check the first radio button of
   the set initially.

   For example:

    <p>Which is your favorite?
    <input type=radio name=flavor value=vanilla>Vanilla<br>
    <input type=radio name=flavor value=strawberry>Strawberry<br>
    <input type=radio name=flavor value=chocolate>Chocolate<br>
---

Notice especially the following:
---
If none of the <INPUT> elements of a set of radio buttons specifies
   `CHECKED', then the user agent must check the first radio button of
   the set initially.
---

As far as I can tell, Konqueror does not comply. When no radiobuttons are default, all of them are checked.
Comment 1 Alexander Rødseth 2005-04-14 01:39:47 UTC
I was wrong. The problem occurs only when all radiobuttons are checked, and not when none of them are checked.

If Konqueror, like most other browsers could allow only for one of them to be checked at the same time, I would really appreciate it.

Thanks.
Comment 2 Thiago Macieira 2005-04-14 02:10:05 UTC
So, is there a problem?
Comment 3 Alexander Rødseth 2005-04-14 02:19:08 UTC
Yes. Konqueror allows several radiobuttons to be checked at once, as opposed to all other browsers I know of. It lies in the very definition of a radiobutton that only one can be checked.
Comment 4 Tommi Tervo 2005-08-18 13:32:10 UTC
Created attachment 12253 [details]
test case

Confirmed on r449681
Comment 5 Maksim Orlovich 2005-08-18 16:57:09 UTC
That's because they're not in a form. 

Comment 6 Tommi Tervo 2005-08-19 14:44:52 UTC
*** Bug 106351 has been marked as a duplicate of this bug. ***
Comment 7 Maksim Orlovich 2006-01-30 06:27:35 UTC

*** This bug has been marked as a duplicate of 89363 ***