зеркало из https://github.com/mozilla/pjs.git
fix typo that was preventing setAttributeNS from working
(incredibly obvious fix, will notify jst/waterson that this went in)
This commit is contained in:
Родитель
9df9e8857d
Коммит
26d46525c3
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче