From ddb207b3890f5395339b1fa2513a0d444187d6be Mon Sep 17 00:00:00 2001 From: "smontagu%smontagu.org" Date: Thu, 25 Aug 2005 06:49:53 +0000 Subject: [PATCH] Bug 300270: GetDir() returns empty string instead of 'ltr' or 'rtl'. r=sicking, sr=jst git-svn-id: svn://10.0.0.236/trunk@178918 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/content/src/nsGenericHTMLElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {