mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
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:
parent
9897fd1599
commit
e9137a44b0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user