Commit 5763637e authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Return NULL documentElement in READYSTATE_UNINITIALIZED state.

parent 7a0430d0
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment