зеркало из https://github.com/mozilla/gecko-dev.git
Make the value of "dir" attributes more accessible through the DOM, this fixes #32617. r=troy
This commit is contained in:
Родитель
16cee6c8b6
Коммит
12bed16d77
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче