title: Why does chaining not work in IE8 / 9
body: <p>Why does this work: </p>
  
  <pre><code>el = document.getElementById('STR');
  if( el ){
      el.checked = true;
      el2 = el.cloneNode(false);
      el.parentNode.insertBefore(el2, el);
      el2.setAttribute('id','');
      el2.setAttribute('disabled','disabled');
      el2.removeAttribute('name');
      el.removeAttribute("disabled");
      el.style.display="none";
  }
  </code></pre>
  
  <p>but this not: </p>
  
  <pre><code>el = document.getElementById('STR');
  if( el ){
      el.checked = true;
      el2 = el.cloneNode(false);
      el.parentNode.insertBefore(el2, el);
      el2.setAttribute('id','');
      el2.setAttribute('disabled','disabled').removeAttribute('name');
      el.removeAttribute("disabled");
      el.style.display="none";
  }
  </code></pre>
  
  <p>In Firefox / Chrome the last snippet works perfectly.</p>