mshtml: Correctly handle DOCUMENT_FRAGMENT_NODE in IHTMLDOMNode::get_nodeType.
This commit is contained in:
parent
04ad732114
commit
22ba44b401
|
@ -368,6 +368,9 @@ static HRESULT WINAPI HTMLDOMNode_get_nodeType(IHTMLDOMNode *iface, LONG *p)
|
||||||
case DOCUMENT_NODE:
|
case DOCUMENT_NODE:
|
||||||
*p = 9;
|
*p = 9;
|
||||||
break;
|
break;
|
||||||
|
case DOCUMENT_FRAGMENT_NODE:
|
||||||
|
*p = 11;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
/*
|
/*
|
||||||
* FIXME:
|
* FIXME:
|
||||||
|
|
|
@ -36,6 +36,7 @@ function test_createDocumentFragment() {
|
||||||
|
|
||||||
ok(typeof(fragment) === "object", "typeof(fragmend) = " + typeof(fragment));
|
ok(typeof(fragment) === "object", "typeof(fragmend) = " + typeof(fragment));
|
||||||
ok(fragment.parentWindow === window, "fragment.parentWindow != window");
|
ok(fragment.parentWindow === window, "fragment.parentWindow != window");
|
||||||
|
ok(fragment.nodeType === 11, "fragment.nodeType = " + fragment.nodeType);
|
||||||
ok(fragment.nodeName === "#document-fragment", "fragment.nodeName = " + fragment.nodeName);
|
ok(fragment.nodeName === "#document-fragment", "fragment.nodeName = " + fragment.nodeName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue