Side navigation
#7529 closed bug (invalid)
Opened November 16, 2010 03:48AM UTC
Closed November 16, 2010 03:57AM UTC
Last modified March 14, 2012 07:26PM UTC
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/
Attachments (0)
Change History (1)
Changed November 16, 2010 03:57AM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
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.