diff --git a/mozilla/content/html/content/src/nsGenericHTMLElement.cpp b/mozilla/content/html/content/src/nsGenericHTMLElement.cpp index 466770a2e2b..91df21d649a 100644 --- a/mozilla/content/html/content/src/nsGenericHTMLElement.cpp +++ b/mozilla/content/html/content/src/nsGenericHTMLElement.cpp @@ -489,7 +489,7 @@ nsGenericHTMLElement::GetDir(nsAString& aDir) { const nsAttrValue* attr = mAttrsAndChildren.GetAttr(nsHTMLAtoms::dir); - if (attr && attr->Type() == nsAttrValue::eInteger) { + if (attr && attr->Type() == nsAttrValue::eEnum) { attr->ToString(aDir); } else {