Revert "Redo ve.createDocumentFromHTML() properly"

Completely breaks in Firefox

This reverts commit 7287c8029330cba8d89e7093be1c1c7963dced0a

Change-Id: I1c34842e156fd5668aac097ba6dd80201e54ecca
Merge "Revert "Redo ve.createDocumentFromHTML() properly""