[Webkit-unassigned] [Bug 6282] New: Adding new Option with new Option(text, value, defaultSelected, selected) fails to update selectedIndex

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Thu Dec 29 00:11:14 PST 2005


http://bugzilla.opendarwin.org/show_bug.cgi?id=6282

           Summary: Adding new Option with new Option(text, value,
                    defaultSelected, selected) fails to update selectedIndex
           Product: WebKit
           Version: 412+
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P3
         Component: HTML Forms
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: macdome at opendarwin.org


Adding new Option with new Option(text, value, defaultSelected, selected) fails to update selectedIndex

to demonstrate:

var mySelect = document.getElementById("mySelect");
var prevSelection = mySelect.selectedIndex;
mySelect.options[mySelect.length] = new Option("text", "value", true, true);
if (prevSelection == mySelect.selectedIndex)
    alert("Failure!");

-- 
Configure bugmail: http://bugzilla.opendarwin.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