mshtml: Make sure we don't try to create node object for attributes.

This commit is contained in:
Jacek Caban 2011-02-24 13:04:39 +01:00 committed by Alexandre Julliard
parent 8f79e50e1a
commit 6fe3c709e2
1 changed files with 3 additions and 0 deletions

View File

@ -1033,6 +1033,9 @@ static HRESULT create_node(HTMLDocumentNode *doc, nsIDOMNode *nsnode, HTMLDOMNod
*ret = &comment->node;
break;
}
case ATTRIBUTE_NODE:
ERR("Called on attribute node\n");
return E_UNEXPECTED;
default: {
HTMLDOMNode *node;