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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user