From 22ba44b40195f586583700d93fa623eb02c99927 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Sun, 14 Nov 2010 14:42:43 +0100 Subject: [PATCH] mshtml: Correctly handle DOCUMENT_FRAGMENT_NODE in IHTMLDOMNode::get_nodeType. --- dlls/mshtml/htmlnode.c | 3 +++ dlls/mshtml/tests/jstest.html | 1 + 2 files changed, 4 insertions(+) diff --git a/dlls/mshtml/htmlnode.c b/dlls/mshtml/htmlnode.c index 932577e23c..8f61320496 100644 --- a/dlls/mshtml/htmlnode.c +++ b/dlls/mshtml/htmlnode.c @@ -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: diff --git a/dlls/mshtml/tests/jstest.html b/dlls/mshtml/tests/jstest.html index b5e19ab081..ae224ccb32 100644 --- a/dlls/mshtml/tests/jstest.html +++ b/dlls/mshtml/tests/jstest.html @@ -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); } -- 2.32.0.93.g670b81a890