In some cases appendChild() changes the reference to the parent object to
reference the object returned by appendChild().
Example:
var form = document.forms['form1'];
var input = document.createElement('<INPUT name="input1">');
input.type = 'HIDDEN';
input.id = 'id1';
form.appendChild(input);
Sometimes the form variable at this point references the appended INPUT
object. I havn't figured out when this happens, the same code works as
expected in most cases.
I have observed this in IE7.0.5730.11, not in IE6 or FireFox.