Bug Tracker


Ticket #6655 (closed bug: fixed)

Opened 4 years ago

Last modified 2 years ago

Regression in buildFragment in IE

Reported by: zano Owned by: snover
Priority: blocker Milestone: 1.5
Component: manipulation Version: 1.4.2
Keywords: IE,clone Cc:
Blocking: Blocked by:


jQuery 1.4 caches small fragments. Node.cloneNode is called to reused the cached fragments. IE does not clone correctly the defaultValue of input elements.

For example, $('<input type="text" value="TEST" />')[0].defaultValue returns "TEST" in Firefox but "" in IE.

This prevents forms to be resetted correctly.

Change History

comment:1 Changed 3 years ago by dmethvin

  • Priority set to undecided
  • Status changed from new to open
  • Milestone changed from 1.4.2 to 1.4.5

comment:2 Changed 3 years ago by snover

  • Owner set to snover
  • Status changed from open to assigned

comment:3 Changed 3 years ago by snover

comment:4 Changed 3 years ago by snover

  • Priority changed from undecided to blocker

comment:5 Changed 3 years ago by Colin Snover

  • Status changed from assigned to closed
  • Resolution set to fixed

Ensure that buildFragment clones elements properly in all browsers. Fixes #3879, #6655. Also improves form element clone tests and fixes bugs in $.fn.clone exposed by these new test cases related to the values of checkboxes and radio buttons in IE.

Changeset: b14f02899e74c429effadd88527ffde17650149a

comment:34 Changed 3 years ago by jitter

  • Milestone changed from 1.4.5 to 1.5

Move fixed tickets to appropriate milestone

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


Add a comment

Modify Ticket

as closed

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

Note: See TracTickets for help on using tickets.