title: IE and replaceWith not preserving radio button state
body: <p>I've run into an issue regarding replaceWith not maintaining the state of a moved radio button input. I've prepared a simple example illustrating this issue. This works in FF and Chrome, but not IE.</p>
  
  <p>Is there a way around this?</p>
  
  <p>Thanks!</p>
  
  <p>jsbin: <a href="http://jsbin.com/unola4/2" rel="nofollow noreferrer">http://jsbin.com/unola4/2</a></p>
  
  <p>code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt;
  &lt;title&gt;IE replaceWith issue&lt;/title&gt;
  &lt;script type='text/javascript'&gt;
  $(function(){
    $('a').click(function(e) {
      e.preventDefault();
      $('#temp').replaceWith($('#window').children());
    });
  });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;a href='#'&gt;run replaceWith&lt;/a&gt;
    &lt;p&gt;Select a radio button and then click "run replaceWith". The value persists in FF, but not IE.&lt;/p&gt;
    &lt;div id='window' style='background-color: #DDD; height: 100px;'&gt;
      &lt;input id="id_received_date-days_0" type="radio" name="received_date-days" value="30" /&gt;
      &lt;input id="id_received_date-days_1" type="radio" name="received_date-days" value="50" /&gt;
      &lt;input type='text' name='test-test' /&gt;
    &lt;/div&gt;
    &lt;br /&gt;
    &lt;form id='foo' style='background-color: #EEE'&gt;
      &lt;div id='temp'&gt;&lt;/div&gt;
    &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>