mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 675437 - Obtain the local name atom of attributes in a non-crashy way in nsTreeSanitizer. r=bzbarsky.
This commit is contained in:
parent
5c20792f2d
commit
c358d9fe7e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user