Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#9547 closed bug (fixed)

Cannot create an input of type=number in jQuery 1.4.4 and IE 9.0.8112.16421

Reported by: duereg@… Owned by:
Priority: low Milestone: 1.next
Component: attributes Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

Description

The following code consistently explodes in IE 9:

$("<input>") .attr("type", "number") .attr("min", "1") .attr("id", "size") .attr("value", 10) .addClass("size")

Change History (4)

comment:1 in reply to:  description Changed 12 years ago by duereg@…

Replying to duereg@…:

The following code consistently explodes in IE 9:

$("<input>") .attr("type", "number") .attr("min", "1") .attr("id", "size") .attr("value", 10) .addClass("size")

An example of this behavior: http://jsfiddle.net/q77Rg/1/

Tested under Windows 7 Home Premium SP 1

comment:2 Changed 12 years ago by duereg@…

This behavior is resolved in still present in jQuery 1.52 but resolved in jQuery 1.6.

comment:3 Changed 12 years ago by addyosmani

Component: unfiledattributes
Priority: undecidedlow
Resolution: fixed
Status: newclosed

Thanks for submitting a ticket to the jQuery project!. Due to limited resources, we're only able to maintain a single version of jQuery in active development at any one time. As a result of this we are unable to make fixes available for old releases outside of our main release cycle, but as you mention, jQuery 1.6 now resolves the behaviour you've mentioned. We strongly recommend using 1.6.x rather than 1.4.4 in this instance.

comment:4 Changed 12 years ago by Rick Waldron

It should be noted that IE<9 won't even let you "change" the type attribute after an input element has been created.

Note: See TracTickets for help on using tickets.