mshtml: Added DOCUMENT_NODE type support.
This commit is contained in:
parent
beeaea1176
commit
44a314945b
|
@ -370,6 +370,9 @@ static HRESULT WINAPI HTMLDOMNode_get_nodeType(IHTMLDOMNode *iface, long *p)
|
||||||
case COMMENT_NODE:
|
case COMMENT_NODE:
|
||||||
*p = 8;
|
*p = 8;
|
||||||
break;
|
break;
|
||||||
|
case DOCUMENT_NODE:
|
||||||
|
*p = 9;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
/*
|
/*
|
||||||
* FIXME:
|
* FIXME:
|
||||||
|
|
|
@ -2068,6 +2068,8 @@ static void test_elems(IHTMLDocument2 *doc)
|
||||||
IHTMLDOMNode_Release(node2);
|
IHTMLDOMNode_Release(node2);
|
||||||
ok(node != NULL, "node == NULL\n");
|
ok(node != NULL, "node == NULL\n");
|
||||||
test_node_name((IUnknown*)node, "#document");
|
test_node_name((IUnknown*)node, "#document");
|
||||||
|
type = get_node_type((IUnknown*)node);
|
||||||
|
ok(type == 9, "type=%ld, expected 9\n", type);
|
||||||
node2 = test_node_get_parent((IUnknown*)node);
|
node2 = test_node_get_parent((IUnknown*)node);
|
||||||
IHTMLDOMNode_Release(node);
|
IHTMLDOMNode_Release(node);
|
||||||
ok(node2 == NULL, "node != NULL\n");
|
ok(node2 == NULL, "node != NULL\n");
|
||||||
|
|
Loading…
Reference in New Issue