Core: revert addition of createHTMLDocument. Thanks, Safari 8.

- Safari 8 has issues when the HTML string contains forms.
  Closing tags are not respected.