diff --git a/mozilla/content/html/content/src/nsGenericHTMLElement.cpp b/mozilla/content/html/content/src/nsGenericHTMLElement.cpp
index 2e96ff6a8c9..30951a7b49b 100644
--- a/mozilla/content/html/content/src/nsGenericHTMLElement.cpp
+++ b/mozilla/content/html/content/src/nsGenericHTMLElement.cpp
@@ -1645,7 +1645,7 @@ nsGenericHTMLElement::SetAttrAndNotify(PRInt32 aNamespaceID,
}
else {
nsCOMPtr ni;
- rv = mNodeInfo->NodeInfoManager()->GetNodeInfo(aAttribute, nsnull,
+ rv = mNodeInfo->NodeInfoManager()->GetNodeInfo(aAttribute, aPrefix,
aNamespaceID,
getter_AddRefs(ni));
NS_ENSURE_SUCCESS(rv, rv);
diff --git a/mozilla/content/xul/content/src/nsXULElement.cpp b/mozilla/content/xul/content/src/nsXULElement.cpp
index 2906b8e3b0b..0e383732def 100644
--- a/mozilla/content/xul/content/src/nsXULElement.cpp
+++ b/mozilla/content/xul/content/src/nsXULElement.cpp
@@ -2174,7 +2174,7 @@ nsXULElement::SetAttrAndNotify(PRInt32 aNamespaceID,
}
else {
nsCOMPtr ni;
- rv = NodeInfo()->NodeInfoManager()->GetNodeInfo(aAttribute, nsnull,
+ rv = NodeInfo()->NodeInfoManager()->GetNodeInfo(aAttribute, aPrefix,
aNamespaceID,
getter_AddRefs(ni));
NS_ENSURE_SUCCESS(rv, rv);