Vuln Dev
IE7 SELECT Tag Oct 31 2006 02:20PM
dan ross picbusiness com (1 replies)
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>  
<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.

[ reply ]
Re: IE7 SELECT Tag Nov 05 2006 08:12PM
Stefano Zanero (s zanero securenetwork it)


 

Privacy Statement
Copyright 2010, SecurityFocus