This verifies that XHR.response is an instance of Document when XHR.responseType is set to 'document' and the response contains HTML.