зеркало из https://github.com/mozilla/pjs.git
Forms should return .method in all lowercase for compat with IE and
NS4. Bug 113174, r=fabian, sr=jst
This commit is contained in:
Родитель
3d3762626d
Коммит
3cdeb52aa9
|
@ -450,13 +450,13 @@ nsHTMLFormElement::AttributeToString(nsIAtom* aAttribute,
|
|||
{
|
||||
if (aAttribute == nsHTMLAtoms::method) {
|
||||
if (eHTMLUnit_Enumerated == aValue.GetUnit()) {
|
||||
EnumValueToString(aValue, kFormMethodTable, aResult);
|
||||
EnumValueToString(aValue, kFormMethodTable, aResult, PR_FALSE);
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
}
|
||||
else if (aAttribute == nsHTMLAtoms::enctype) {
|
||||
if (eHTMLUnit_Enumerated == aValue.GetUnit()) {
|
||||
EnumValueToString(aValue, kFormEnctypeTable, aResult);
|
||||
EnumValueToString(aValue, kFormEnctypeTable, aResult, PR_FALSE);
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче