зеркало из https://github.com/mozilla/pjs.git
Checking in Pete Zha's <pete.zha@sun.com> fix for bug 121726. Don't remove and re-insert form controls into form.elements when the name or id changes. This caused form.elements to be incorrectly ordered and is pointless to start with. r=jkeiser@iname.com, sr=jst@netscape.com
This commit is contained in:
Родитель
d444650985
Коммит
7bf4f58920
|
@ -4170,8 +4170,6 @@ nsGenericHTMLElement::SetFormControlAttribute(nsIForm* aForm,
|
|||
if (!tmp.IsEmpty()) {
|
||||
aForm->RemoveElementFromTable(thisControl, tmp);
|
||||
}
|
||||
|
||||
aForm->RemoveElement(thisControl);
|
||||
}
|
||||
|
||||
if (aForm && aName == nsHTMLAtoms::type) {
|
||||
|
@ -4198,8 +4196,6 @@ nsGenericHTMLElement::SetFormControlAttribute(nsIForm* aForm,
|
|||
if (!tmp.IsEmpty()) {
|
||||
aForm->AddElementToTable(thisControl, tmp);
|
||||
}
|
||||
|
||||
aForm->AddElement(thisControl);
|
||||
}
|
||||
|
||||
if (aForm && aName == nsHTMLAtoms::type) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче