Bug 659539 Part 1: Give nsINodeInfos a nodeType, nodeName and localName. r=bz
This commit is contained in:
@@ -651,7 +651,8 @@ ImageDocument::CreateSyntheticDocument()
|
||||
|
||||
nsCOMPtr<nsINodeInfo> nodeInfo;
|
||||
nodeInfo = mNodeInfoManager->GetNodeInfo(nsGkAtoms::img, nsnull,
|
||||
kNameSpaceID_XHTML);
|
||||
kNameSpaceID_XHTML,
|
||||
nsIDOMNode::ELEMENT_NODE);
|
||||
NS_ENSURE_TRUE(nodeInfo, NS_ERROR_OUT_OF_MEMORY);
|
||||
|
||||
mImageContent = NS_NewHTMLImageElement(nodeInfo.forget());
|
||||
|
||||
Reference in New Issue
Block a user