Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#7529 closed bug (invalid)

val() returning an array for some single-selects under IE

Reported by: joshjordan Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

Description

val() returns an array when called on a single-select with a "type" attribute under IE. Under Chrome, this doesn't happen. Should jQuery work around this in the name of cross-browser compatibility?

Test case: http://jsfiddle.net/ayg2c/

Change History (1)

comment:1 Changed 9 years ago by snover

Resolution: invalid
Status: newclosed

Thanks for the report, but this is not a jQuery bug. type is not a valid property of a <select> element. If a browser interprets this in a nonstandard manner that causes the behaviour of the element to change, it is outside the scope of jQuery. If you are trying to attach custom attributes to an element, please use HTML5 data attributes.

Note: See TracTickets for help on using tickets.