Commit 6ee70903 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Don't create element object for document node.

parent 77e8a680
......@@ -370,8 +370,7 @@ HTMLDOMNode *get_node(HTMLDocument *This, nsIDOMNode *nsnode)
nsIDOMNode_GetNodeType(nsnode, &node_type);
if(node_type == NS_ELEMENT_NODE
|| node_type == NS_DOCUMENT_NODE)
if(node_type == ELEMENT_NODE)
HTMLElement_Create(ret);
return ret;
......
......@@ -47,9 +47,6 @@
#define NSAPI WINAPI
#define NS_ELEMENT_NODE 1
#define NS_DOCUMENT_NODE 9
#define MSHTML_E_NODOC 0x800a025c
typedef struct HTMLDOMNode HTMLDOMNode;
......
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