more changes to make xmldoc.createElementNS() create the correct type of element (and fix tinderbox mac bustage)
git-svn-id: svn://10.0.0.236/trunk@108358 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1330,11 +1330,8 @@ nsHTMLDocument::CreateElementNS(const nsAReadableString& aNamespaceURI,
|
||||
rv = NS_CreateHTMLElement(getter_AddRefs(htmlContent), nodeInfo, PR_FALSE);
|
||||
content = do_QueryInterface(htmlContent);
|
||||
}
|
||||
else {
|
||||
nsCOMPtr<nsIXMLContent> xmlContent;
|
||||
rv = NS_NewXMLElement(getter_AddRefs(xmlContent), nodeInfo);
|
||||
content = do_QueryInterface(xmlContent);
|
||||
}
|
||||
else
|
||||
rv = NS_NewXMLElement(getter_AddRefs(content), nodeInfo);
|
||||
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user