fix typo that was preventing setAttributeNS from working

(incredibly obvious fix, will notify jst/waterson that this went in)
This commit is contained in:
alecf%netscape.com 2000-06-07 01:11:05 +00:00
Родитель 9df9e8857d
Коммит 26d46525c3
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -1483,11 +1483,11 @@ nsXULElement::SetAttributeNS(const nsString& aNamespaceURI,
{
nsCOMPtr<nsINodeInfoManager> nimgr;
nsresult rv = NodeInfo()->GetNodeInfoManager(*getter_AddRefs(nimgr));
NS_ENSURE_TRUE(rv, rv);
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr<nsINodeInfo> ni;
rv = nimgr->GetNodeInfo(aQualifiedName, aNamespaceURI, *getter_AddRefs(ni));
NS_ENSURE_TRUE(rv, rv);
NS_ENSURE_SUCCESS(rv, rv);
return SetAttribute(ni, aValue, PR_TRUE);
}

Просмотреть файл

@ -1483,11 +1483,11 @@ nsXULElement::SetAttributeNS(const nsString& aNamespaceURI,
{
nsCOMPtr<nsINodeInfoManager> nimgr;
nsresult rv = NodeInfo()->GetNodeInfoManager(*getter_AddRefs(nimgr));
NS_ENSURE_TRUE(rv, rv);
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr<nsINodeInfo> ni;
rv = nimgr->GetNodeInfo(aQualifiedName, aNamespaceURI, *getter_AddRefs(ni));
NS_ENSURE_TRUE(rv, rv);
NS_ENSURE_SUCCESS(rv, rv);
return SetAttribute(ni, aValue, PR_TRUE);
}