[Bug 12301] New: Make empty-named radio buttons not belong to a group

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12301

           Summary: Make empty-named radio buttons not belong to a group
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: jonas@sicking.cc
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org, mounir.lamouri@gmail.com


In most regards, the <input> element treats an empty name the same as the lack
of a name.

This is true for example during form submission, and weather the element shows
up in the form.elements collection.

However, the one exception appears to be that for radio buttons, <input> with
an empty name attribute belong to the same radio group. However elements with
no name attribute belong to no group.


Firefox 3.6 does what the spec currently prescribes.
Firefox 4 puts empty-named radio buttons in no group. (Disclosure, this change
was made by me, though I don't remember if it was an intentional change or not.
It could have been a side effect of some code cleanup).
Webkit puts empty-named radio buttons in no group.

Don't have Opera or IE at hand to try, but [1] indicates that Opera and IE6
behave like Firefox 3.6 whereas IE9 behave like Firefox 4 and webkit.

If this is true the only recent browser that follows the currently specced
behavior is Opera.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=639378


To make name handling more consistent I propose that we treat empty-named radio
buttons like nameless radio buttons and make them not belong to a group.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Tuesday, 15 March 2011 04:42:56 UTC