[Webkit-unassigned] [Bug 9095] New: regression: can't select by setting option.selected to true

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Wed May 24 12:38:55 PDT 2006


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

           Summary: regression: can't select by setting option.selected to
                    true
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: oster at google.com


In a select element, in previous versions of webKit, you could select an
element by settings its option[n].selected = true; This no longer works.

In shipping Safari and recent webkits, the following HTML sets the select
element to 'good'. As of nightly build 14464, it sets it to 'bad'. 

Minimal example:

<html>
<head>
<script>
function GoLoad(){
  var sel = document.getElementById('sel');
  sel.options[2].selected = true;
}
</script>
<title>Select by option.select = true</title>
</head>
<body onLoad='javascript:GoLoad()'>
<h1>experiment: Select by setting the option's selected propert to true</h1>
<form>
<select name='sel' id='sel'>
<option value='bad'>bad</option>
<option value='once'>once</option>
<option value='good'>good</option>
<option value='thrice'>thrice</option>
</select>
</form>
<div id='log'>
</div>
<div id='comment'>
</div>
</body>
</html>


-- 
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