Bug 1958: Submit value for checkboxes or "on" for checkboxes with no value.

This commit is contained in:
pollmann%netscape.com 1999-01-27 02:33:16 +00:00
parent 3817a12b85
commit d088640ae9

View File

@ -246,7 +246,7 @@ nsCheckboxControlFrame::GetNamesValues(PRInt32 aMaxNumValues, PRInt32& aNumValue
if (PR_TRUE != state) {
result = PR_FALSE;
} else {
if (NS_CONTENT_ATTR_HAS_VALUE == valueResult) {
if (NS_CONTENT_ATTR_HAS_VALUE != valueResult) {
aValues[0] = "on";
} else {
aValues[0] = value;