Commit 22ba44b4 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Correctly handle DOCUMENT_FRAGMENT_NODE in IHTMLDOMNode::get_nodeType.

parent 04ad7321
......@@ -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);
}
......
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