Bug 300270: GetDir() returns empty string instead of 'ltr' or 'rtl'. r=sicking, sr=jst

This commit is contained in:
smontagu%smontagu.org 2005-08-25 06:49:53 +00:00
Родитель 73cf168a8b
Коммит b204b4bce1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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