Bug 1358448 - Add radio back to a radio group after moving out of a form. r=smaug
The container of a radio group is the form, if it belongs to a form, or the document object otherwise. When moving a radio out of a form, we should add it back to a radio group. Similary, before moving the radio to a form, we should remove it from the original radio group. MozReview-Commit-ID: 22WsEhz2SXH
This commit is contained in:
@@ -100,12 +100,12 @@ HTMLFormControlsCollection::Clear()
|
||||
{
|
||||
// Null out childrens' pointer to me. No refcounting here
|
||||
for (int32_t i = mElements.Length() - 1; i >= 0; i--) {
|
||||
mElements[i]->ClearForm(false);
|
||||
mElements[i]->ClearForm(false, false);
|
||||
}
|
||||
mElements.Clear();
|
||||
|
||||
for (int32_t i = mNotInElements.Length() - 1; i >= 0; i--) {
|
||||
mNotInElements[i]->ClearForm(false);
|
||||
mNotInElements[i]->ClearForm(false, false);
|
||||
}
|
||||
mNotInElements.Clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user