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:
|
||||
*p = 9;
|
||||
break;
|
||||
case DOCUMENT_FRAGMENT_NODE:
|
||||
*p = 11;
|
||||
break;
|
||||
default:
|
||||
/*
|
||||
* FIXME:
|
||||
|
|
|
@ -36,6 +36,7 @@ function test_createDocumentFragment() {
|
|||
|
||||
ok(typeof(fragment) === "object", "typeof(fragmend) = " + typeof(fragment));
|
||||
ok(fragment.parentWindow === window, "fragment.parentWindow != window");
|
||||
ok(fragment.nodeType === 11, "fragment.nodeType = " + fragment.nodeType);
|
||||
ok(fragment.nodeName === "#document-fragment", "fragment.nodeName = " + fragment.nodeName);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue