[Webkit-unassigned] [Bug 10472] New: REGRESSION: "add" method of <select> object does not put the <option> object in the correct position
bugzilla-daemon at opendarwin.org
bugzilla-daemon at opendarwin.org
Thu Aug 17 13:39:07 PDT 2006
http://bugzilla.opendarwin.org/show_bug.cgi?id=10472
Summary: REGRESSION: "add" method of <select> object does not put
the <option> object in the correct position
Product: WebKit
Version: 420+ (nightly)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: normal
Priority: P1
Component: New Bugs
AssignedTo: webkit-unassigned at opendarwin.org
ReportedBy: opendarwin at sebastiancelis.com
In certain circumstances, it seems as though
selectObj.add(optionObj, selectObj.options[0]);
does not actually add optionObj to the beginning of the select object.
>From my testing, it looks as if this bug only occurs if the selectObj is
created dynamically using document.createElement("select");
The first time the "add" method is called, it works fine. On subsequent calls,
the <option> objects are placed at lower positions in the <select> list. It is
as if selectObj.options[0] is not updated to return the correct object after
the "add" is performed. This is confirmed by calling
alert(selectObj.options[0].value); after each call to the "add" method.
This issue is not present in WebKit 4.19.3.
I am attaching a test case reduction which demonstrates the issue.
Machine Details:
MacBook Pro
Mac OS X 10.4.7
WebKit-SVN-r15924.dmg -- Thu Aug 17 8:00:01 GMT 2006
--
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