innerHTML is broken when used for full documents.