Cleanup and improve DOMImplementation#createHTMLDocument tests.