Bug 24606
| Summary: | WebKit cannot add options right into a group via HTMLSelectElement.add() | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> |
| Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | annevk, priyajeet.hora |
| Priority: | P3 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Alexey Proskuryakov
It is possible to add an option to a SELECT via e.g.
select.add(new Option("0", "0", false, false), select.firstChild);
But it is not possible to add an element to HTMLOptGroupElement in this way:
select.add(new Option("0", "0", false, false), optgroup.firstChild);
Same problem exists with removing.
Disabled cases in fast/forms/mutation-event-recalc.html could check for this.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Adam Roben (:aroben)
<rdar://problem/6972264>
Anne van Kesteren
Removing appears to have been fixed at some point.
*** This bug has been marked as a duplicate of bug 266935 ***