[Webkit-unassigned] [Bug 15235] New: Options can not be removed from a Select element with OptGroup's using JavaScript

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 18 16:17:25 PDT 2007


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

           Summary: Options can not be removed from a Select element with
                    OptGroup's using JavaScript
           Product: WebKit
           Version: 522+ (nightly)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: diovieno at perseus.com


If you have a select element as follows

<select name="S1" id="S1">
    <optgroup label="Group 1">
      <option value="1">Option 1</option>
      <option value="2">Option 2</option>
      <option value="3">Option 3</option>
      <option value="4">Option 4</option>
    </optgroup>
    <optgroup label="Group 2">
      <option value="5">Option 5</option>
      <option value="6">Option 6</option>
      <option value="7">Option 7</option>
      <option value="8">Option 8</option>
      <option value="9">Option 9</option>
    </optgroup>
</select>

And attempt to use JavaScript to remove an option from the list

var list = document.getElementById("S1");
list.options[3] = null;
or
list.remove(3);

The item is not removed from the list.
No errors appear in the JavaScript Console.

If the select element does not contain optgroup's, the JavaScript works
correctly.


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