Bug 675437 - Obtain the local name atom of attributes in a non-crashy way in nsTreeSanitizer. r=bzbarsky.

This commit is contained in:
Henri Sivonen 2011-08-01 17:10:07 +03:00
parent 5c20792f2d
commit c358d9fe7e

View File

@ -1195,7 +1195,7 @@ nsTreeSanitizer::SanitizeAttributes(mozilla::dom::Element* aElement,
rv = NS_OK;
const nsAttrName* attrName = aElement->GetAttrNameAt(i);
PRInt32 attrNs = attrName->NamespaceID();
nsIAtom* attrLocal = attrName->Atom();
nsIAtom* attrLocal = attrName->LocalName();
if (kNameSpaceID_None == attrNs) {
if (aAllowStyle && nsGkAtoms::style == attrLocal) {