Bug Tracker

Modify

Ticket #9547 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

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@…

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 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.

comment:4 Changed 2 years ago by rwaldron

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.