mshtml: Correctly handle DOCUMENT_FRAGMENT_NODE in IHTMLDOMNode::get_nodeType.

This commit is contained in:
Jacek Caban 2010-11-14 14:42:43 +01:00 committed by Alexandre Julliard
parent 04ad732114
commit 22ba44b401
2 changed files with 4 additions and 0 deletions

View File

@ -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:

View File

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