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:
Boris Zbarsky
2015-02-02 15:42:40 -05:00
parent edf7035ce7
commit 5e2fc33f29
2 changed files with 36 additions and 4 deletions

View File

@@ -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");
}