зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 12565. form.encoding returns the value of the ENCTYPE attribute, not ENCODING. r=joki
This commit is contained in:
Родитель
6d238e1056
Коммит
94e7ff67cd
|
@ -504,7 +504,7 @@ nsHTMLFormElement::RemoveElement(nsIFormControl* aChild, PRBool aChildIsRef)
|
|||
NS_IMETHODIMP
|
||||
nsHTMLFormElement::GetEncoding(nsString& aEncoding)
|
||||
{
|
||||
return mInner.GetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::encoding, aEncoding);
|
||||
return mInner.GetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::enctype, aEncoding);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
|
@ -504,7 +504,7 @@ nsHTMLFormElement::RemoveElement(nsIFormControl* aChild, PRBool aChildIsRef)
|
|||
NS_IMETHODIMP
|
||||
nsHTMLFormElement::GetEncoding(nsString& aEncoding)
|
||||
{
|
||||
return mInner.GetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::encoding, aEncoding);
|
||||
return mInner.GetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::enctype, aEncoding);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче