diff --git a/mozilla/content/base/src/nsGenericElement.cpp b/mozilla/content/base/src/nsGenericElement.cpp index 478a7755eeb..83c1e166c56 100644 --- a/mozilla/content/base/src/nsGenericElement.cpp +++ b/mozilla/content/base/src/nsGenericElement.cpp @@ -3233,7 +3233,9 @@ nsGenericElement::SetAttrAndNotify(PRInt32 aNamespaceID, nsAutoString attrName; aName->ToString(attrName); nsCOMPtr attrNode; - GetAttributeNode(attrName, getter_AddRefs(attrNode)); + nsAutoString ns; + nsContentUtils::NameSpaceManager()->GetNameSpaceURI(aNamespaceID, ns); + GetAttributeNodeNS(ns, attrName, getter_AddRefs(attrNode)); mutation.mRelatedNode = attrNode; mutation.mAttrName = aName; @@ -3431,10 +3433,11 @@ nsGenericElement::UnsetAttr(PRInt32 aNameSpaceID, nsIAtom* aName, // Grab the attr node if needed before we remove it from the attr map nsCOMPtr attrNode; if (hasMutationListeners) { - // XXXbz namespaces, dude! nsAutoString attrName; aName->ToString(attrName); - GetAttributeNode(attrName, getter_AddRefs(attrNode)); + nsAutoString ns; + nsContentUtils::NameSpaceManager()->GetNameSpaceURI(aNameSpaceID, ns); + GetAttributeNodeNS(ns, attrName, getter_AddRefs(attrNode)); } // Clear binding to nsIDOMNamedNodeMap diff --git a/mozilla/content/xul/content/src/nsXULElement.cpp b/mozilla/content/xul/content/src/nsXULElement.cpp index 8d4bce2ed83..67fa509a791 100644 --- a/mozilla/content/xul/content/src/nsXULElement.cpp +++ b/mozilla/content/xul/content/src/nsXULElement.cpp @@ -1337,10 +1337,11 @@ nsXULElement::UnsetAttr(PRInt32 aNameSpaceID, nsIAtom* aName, PRBool aNotify) nsCOMPtr attrNode; if (hasMutationListeners) { - // XXXbz namespaces, dude! nsAutoString attrName; aName->ToString(attrName); - GetAttributeNode(attrName, getter_AddRefs(attrNode)); + nsAutoString ns; + nsContentUtils::NameSpaceManager()->GetNameSpaceURI(aNameSpaceID, ns); + GetAttributeNodeNS(ns, attrName, getter_AddRefs(attrNode)); } nsDOMSlots *slots = GetExistingDOMSlots();