[Webkit-unassigned] [Bug 76389] Form select option not de-selecting

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 16 10:44:43 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=76389


Jon Lee <jonlee at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |webkit-bug-importer at group.a
                   |                            |pple.com
     Ever Confirmed|0                           |1




--- Comment #1 from Jon Lee <jonlee at apple.com>  2012-01-16 10:44:43 PST ---
I can confirm this, setting status to new.

When the option gets deselected, the select has no selection. Somewhere in the select code it doesn't know to set the selected index to -1. Instead, it defaults to 0. This can be confirmed by having the second option be set to be the default selection.

While this is definitely a bug, I also find this pattern strange. Why not just say select.selectedIndex = -1?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list