Select is reset when related label is clicked

Atom RSS

This site heavily relies on bug reports created by its readers. Anyone can report a bug and be published.

Main navigation:




Search reports by browser:

In IE, when a <label> is attached to a <select> element, and the user clicks the label, the <select> is selected, but its selectedIndex becomes 0.

Test page Workaround is not included
Reported by: splintor.

Explorer 5-6 Windows | Reported on 21 September 2005.

Comments

(Add your own)

Posted by splintor on 22 September 2005

1

Please note that in my linked blog post, I added a link to MSDN article which reports this problem, and also suggested a better workaround.

Posted by Rob on 23 September 2005

2

For those fighting this bug, check out the xDOM suite: http://slingfive.com/pages/code/xdom/

It's a set of DHTML Behaviors which transparently fix this and other IE bugs.

Post a comment

Commenting guidelines:

  1. When quoting specs, articles or your own research, please include a URL of the document.
  2. Test your stuff. When reporting browser behaviour, make sure that your report is correct.

Yes