cloneNodes now copy ownership information over. This is safe, because the script cannot gain ownership by copying a non-owned nodes.  The adversary can only gain ownership if he owns the cloned nodes beforehand.  The only change is line 625 @ this new file.