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) ...@@ -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() { ...@@ -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);
} }
......
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