Bug Tracker

Opened 14 years ago

Closed 14 years ago

#3716 closed bug (wontfix)

clone() on forms does not copy password input values in ie

Reported by: bryanhart Owned by:
Priority: major Milestone: 1.3
Component: core Version: 1.2.6
Keywords: clone form password input Cc: bryanhart
Blocked by: Blocking:

Description

In IE, after cloning a form, values for password inputs are not copied over. Works as expected in FF3 and Safari 3.

Example:

<form id='form'>
  <input name='password' type='password' value='xyz' />
</form>
<script>
  alert($('#form').clone().find('[name=password]').val());
</script>

Change History (3)

comment:1 Changed 14 years ago by flesler

Cc: bryanhart added
Component: unfilledcore
Owner: flesler deleted

comment:2 Changed 14 years ago by dmethvin

This bug isn't specific to jQuery, it seems to be due to IE's DOM cloneNode operation:

<form id="xform">
<input type="password" name="secret" value="stuff">
</form>
<script>
 alert(document.getElementById("xform").cloneNode(true).innerHTML);
</script>

comment:3 Changed 14 years ago by brandon

Resolution: wontfix
Status: newclosed

Cloning form element values along with a form is something we used to have in core but removed due to the immense overhead it had. The various browsers are not sure what to do with the cloned form element either. The implications are more than just skin deep.

Note: See TracTickets for help on using tickets.