Bug 1322455 - When cloning an <input>, avoid re-initializing checkedness in DoneCreatingElement. r=smaug.

MozReview-Commit-ID: wlbZ7grT2M
This commit is contained in:
Henri Sivonen
2016-12-15 18:25:02 +02:00
parent 1125f5e9ab
commit 971d2a2793
3 changed files with 156 additions and 0 deletions

View File

@@ -1339,6 +1339,8 @@ HTMLInputElement::Clone(mozilla::dom::NodeInfo* aNodeInfo, nsINode** aResult) co
// We no longer have our original checked state. Set our
// checked state on the clone.
it->DoSetChecked(mChecked, false, true);
// Then tell DoneCreatingElement() not to overwrite:
it->mShouldInitChecked = false;
}
break;
case VALUE_MODE_DEFAULT: