#9547 closed bug (fixed)
Cannot create an input of type=number in jQuery 1.4.4 and IE 9.0.8112.16421
Reported by: | 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 Changed 12 years ago by
comment:2 Changed 12 years ago by
This behavior is resolved in still present in jQuery 1.52 but resolved in jQuery 1.6.
comment:3 Changed 12 years ago by
Component: | unfiled → attributes |
---|---|
Priority: | undecided → low |
Resolution: | → fixed |
Status: | new → closed |
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
It should be noted that IE<9 won't even let you "change" the type attribute after an input element has been created.
Replying to duereg@…:
An example of this behavior: http://jsfiddle.net/q77Rg/1/
Tested under Windows 7 Home Premium SP 1