Bug 1128153. When a number input contains a non-number (possibly empty) value, the validation message should be about the value not being a number, not about there being no value. r=jwatt
This commit is contained in:
@@ -6894,6 +6894,9 @@ HTMLInputElement::GetValidationMessage(nsAString& aValidationMessage,
|
||||
case NS_FORM_INPUT_RADIO:
|
||||
key.AssignLiteral("FormValidationRadioMissing");
|
||||
break;
|
||||
case NS_FORM_INPUT_NUMBER:
|
||||
key.AssignLiteral("FormValidationBadInputNumber");
|
||||
break;
|
||||
default:
|
||||
key.AssignLiteral("FormValidationValueMissing");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user