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
This commit is contained in:
smontagu%smontagu.org
2005-08-25 06:49:53 +00:00
parent 9ca5e7e574
commit ddb207b389

View File

@@ -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 {