Modify ↓
Ticket #5389 (closed bug: invalid)
Wrong return for select type=
| Reported by: | mattprokes | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.3.2 |
| Component: | core | Version: | 1.3.2 |
| Keywords: | select bug | Cc: | |
| Blocking: | Blocked by: |
Description
Punch this into a firefox, and ie6 js console please.
$.isArray($('<select type="pants"><option value="x">x</option><option value="y">y</option></select>').val())
FF = false IE6 = true
After much research, the problem lies with the select type having a set value. I am not sure if this problem happens in other ie browsers.
~matt
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

What is the doctype of your document? There is no type attribute in HTML4 at least:
http://www.w3.org/TR/html401/interact/forms.html#h-17.6