Test replacing the whole document via setOuterHTML and ensure running an event handler in the new document does not crash { outerHTML :