Commit 44a31494 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added DOCUMENT_NODE type support.

parent beeaea11
...@@ -370,6 +370,9 @@ static HRESULT WINAPI HTMLDOMNode_get_nodeType(IHTMLDOMNode *iface, long *p) ...@@ -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) ...@@ -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");
......
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