setInnerHTML for XHTML documents

When running under XML mode, normalize the incoming HTML in setInnerHTML.
HTML format is not supported by Safari browsers (both, desktop and mobile). We need to do something like [this](https://github.com/alexeyraspopov/dom-parser/blob/master/index.js#L6..L10)