innerHTML is broken when used for full documents.
Merge pull request #1 from spankyj/documentElement

innerHTML is broken when used for full documents.