Bug 364092, Related node on DOMAttrModifed listener isn't the same as attr node removed by RemoveAttributeNode, r+sr=sicking

This commit is contained in:
Olli.Pettay%helsinki.fi 2006-12-18 19:15:57 +00:00
parent 9897fd1599
commit e9137a44b0

View File

@ -329,9 +329,10 @@ nsDOMAttributeMap::RemoveNamedItem(const nsAString& aName,
return NS_ERROR_DOM_NOT_FOUND_ERR;
}
rv = GetAttribute(ni, aReturn, PR_TRUE);
rv = GetAttribute(ni, aReturn);
NS_ENSURE_SUCCESS(rv, rv);
// This removes the attribute node from the attribute map.
rv = mContent->UnsetAttr(ni->NamespaceID(), ni->NameAtom(), PR_TRUE);
}