mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Checking in workaround for blocker bug 108526. Don't force a reset of an input if there's no parent since this causes checkboxes and radio buttons to be reset before all their attributes are added. r=sicking@bigfoot.com, sr=blizzard@mozilla.org
This commit is contained in:
parent
23aecff7cf
commit
9b4f2e5cd1
@ -159,7 +159,7 @@ public:
|
||||
const nsAReadableString& aValue, PRBool aNotify) {
|
||||
nsresult rv = nsGenericHTMLLeafFormElement::SetAttr(aNameSpaceID, aName,
|
||||
aValue, aNotify);
|
||||
if (aName == nsHTMLAtoms::value && !mValueChanged) {
|
||||
if (aName == nsHTMLAtoms::value && !mValueChanged && mParent) {
|
||||
Reset();
|
||||
}
|
||||
return rv;
|
||||
|
Loading…
Reference in New Issue
Block a user