mshtml: Return NULL documentElement in READYSTATE_UNINITIALIZED state.

This commit is contained in:
Jacek Caban 2009-10-11 21:10:07 +02:00 committed by Alexandre Julliard
parent 7a0430d0e8
commit 5763637e9b
1 changed files with 5 additions and 0 deletions

View File

@ -141,6 +141,11 @@ static HRESULT WINAPI HTMLDocument3_get_documentElement(IHTMLDocument3 *iface, I
TRACE("(%p)->(%p)\n", This, p);
if(This->doc_obj->readystate == READYSTATE_UNINITIALIZED) {
*p = NULL;
return S_OK;
}
if(!This->nsdoc) {
WARN("NULL nsdoc\n");
return E_UNEXPECTED;