Ticket #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: | ||
| Blocking: | Blocked by: |
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
comment:1 in reply to: ↑ description Changed 2 years ago by duereg@…
comment:2 Changed 2 years ago by duereg@…
This behavior is resolved in still present in jQuery 1.52 but resolved in jQuery 1.6.
comment:3 Changed 2 years ago by addyosmani
- Priority changed from undecided to low
- Resolution set to fixed
- Status changed from new to closed
- Component changed from unfiled to attributes
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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Replying to duereg@…:
An example of this behavior: http://jsfiddle.net/q77Rg/1/
Tested under Windows 7 Home Premium SP 1