Make the value of "dir" attributes more accessible through the DOM, this fixes #32617. r=troy

This commit is contained in:
jst%netscape.com 2000-03-22 23:46:33 +00:00
Родитель 16cee6c8b6
Коммит 12bed16d77
2 изменённых файлов: 18 добавлений и 0 удалений

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

@ -1663,6 +1663,15 @@ nsGenericHTMLElement::AttributeToString(nsIAtom* aAttribute,
}
return NS_CONTENT_ATTR_HAS_VALUE;
}
} else if (nsHTMLAtoms::dir == aAttribute) {
nsHTMLValue value;
nsresult result = GetHTMLAttribute(nsHTMLAtoms::dir, value);
if (NS_CONTENT_ATTR_HAS_VALUE == result) {
EnumValueToString(value, kDirTable, aResult);
return NS_OK;
}
}
aResult.Truncate();
return NS_CONTENT_ATTR_NOT_THERE;

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

@ -1663,6 +1663,15 @@ nsGenericHTMLElement::AttributeToString(nsIAtom* aAttribute,
}
return NS_CONTENT_ATTR_HAS_VALUE;
}
} else if (nsHTMLAtoms::dir == aAttribute) {
nsHTMLValue value;
nsresult result = GetHTMLAttribute(nsHTMLAtoms::dir, value);
if (NS_CONTENT_ATTR_HAS_VALUE == result) {
EnumValueToString(value, kDirTable, aResult);
return NS_OK;
}
}
aResult.Truncate();
return NS_CONTENT_ATTR_NOT_THERE;