Skip to main content

Bug Tracker

Side navigation

#8772 closed bug (fixed)

Opened April 05, 2011 02:18PM UTC

Closed April 15, 2011 02:32AM UTC

Last modified March 13, 2012 02:46PM UTC

Using .attr() to set input type 'range' causes script error in IE9

Reported by: Owned by: timmywil
Priority: high Milestone: 1.6
Component: attributes Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

jQuery versions tested: 1.5.1, 1.5.2

Browser: IE9

System tested: Windows Vista


IE9 fails to gracefully handle the setting of unsupported input types. Where other browsers handle unsupported input types gracefully, for example:

jQuery('<input/>', {type: 'sheep'})

IE9 throws an error. Perhaps jQuery could explicitly set the type 'text', or perhaps set nothing at all, when you try to set unsupported types in IE9?

Attachments (0)
Change History (4)

Changed April 07, 2011 02:09PM UTC by rwaldron comment:1

component: unfiledattributes
owner: → timmywil
status: newassigned

I'm assigning this to timmywil as he is currently writing the attrHooks module. Beyond that, i have not tested this issue.

Changed April 07, 2011 02:28PM UTC by timmywil comment:2

I'd be happy to help, but perhaps you could correct me on something. Does IE9 still not support range inputs? I don't yet have a VM that can run IE9, but I'm working on getting one. It certainly would be sad to discover that IE9 throws an exception every time you set an unsupported input type.

Changed April 11, 2011 01:12PM UTC by comment:3

No, IE9 does not support range inputs. I tested type='range' and type='sheep' :) I will go back and test the other html5 types.

Changed April 15, 2011 02:32AM UTC by timmywil comment:4

milestone: 1.next1.6
priority: undecidedhigh
resolution: → fixed
status: assignedclosed