[Webkit-unassigned] [Bug 16191] New: cannot tab to checked false radio input

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 29 09:42:34 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=16191

           Summary: cannot tab to checked false radio input
           Product: WebKit
           Version: 523.x (Safari 3)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Major
          Priority: P1
         Component: Forms
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: bcarter at altec.org


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Safari v3 bug</title>

<!--

Bug: cannot tab to checked false radio input

Safari v3.0.4 (523.12.9) Windows XP
Safari v3.0.4 (523.12) Mac OS X 10.4.11

To reproduce:
Press TAB to cycle through radio inputs.
Select one radio with SPACE or mouse click.
Continue to press TAB.
Notice TAB will now skip the input.

Expected:
checked false inputs with unique IDs should
always be in the TAB sequence.

works as expected in Safari v2.0.4. and
current versions of Opera, Firefox, and IE.

-->

<script language="JavaScript" type="text/javascript">

function initFocus() {

var myInputs = document.getElementsByTagName('INPUT');
for (var i=0; i<myInputs.length; i++) {

myInputs[i].onclick=function(){

        var myFieldset = this.parentNode.parentNode;
        var myInputs = myFieldset.getElementsByTagName('INPUT');
        for (var i=0; i<myInputs.length; i++) {
        myInputs[i].checked=false;
        }
        //this.checked=true;
}}}

</script>
</head>
<body onload="initFocus();">
<form action="">

        <fieldset style="margin-left:1em;border:0">
        <input type="radio" name="input-p1q1-1" />answer1<br />
        <input type="radio" name="input-p1q1-2" />answer2<br />
        <input type="radio" name="input-p1q1-3" />answer3<br />
        <input type="radio" name="input-p1q1-4" />answer4<br />
        </fieldset>

</form>
</body>
</html>


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list