Vulnerability Development mailing list archives

IE7 SELECT Tag


From: dan.ross () picbusiness com
Date: 31 Oct 2006 14:20:59 -0000

I just installed IE7 this morning, then promptly found my first bug.

Now, imagine instead of fruit, you're picking which bank account to transfer money to/from...


Sample Code:
<html>
<body>
<B>Please choose one:</B> &nbsp;
<SELECT onchange=alert('hi') size=1 name=favorite>
<OPTION value="">
<OPTION value=1>Apple
<OPTION value=2>Banana
<OPTION value=3 selected>Cashew
<OPTION value=4>Orange
</SELECT>
</body>
</html>


You have to be very picky to reproduce:
1. click on the arrow at the right of the select, leave your mouse there
2. type first character of your selection
3. click on the arrow again (remember your mouse is still right there)
onchange never gets called!

In fact, if you do step 1 again, you can see your previous option is not highlighted; rather the original one 
"selected" is still highlighted!

If you move your mouse (even just a little), onchange does get called.


Current thread: