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:
jst%netscape.com 2001-11-05 23:20:05 +00:00
parent 23aecff7cf
commit 9b4f2e5cd1

View File

@ -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;