String HTMLTextAreaElement::validationMessage() const { if (!willValidate()) return String(); if (customError()) return customValidationMessage(); if (valueMissing()) return validationMessageValueMissingText(); if (tooLong()) return validationMessageTooLongText(computeLengthForSubmission(value()), maxLength()); return String(); }
String HTMLTextAreaElement::validationMessage() const { if (!willValidate()) return String(); if (customError()) return customValidationMessage(); if (valueMissing()) return locale().queryString(WebKit::WebLocalizedString::ValidationValueMissing); if (tooLong()) return locale().validationMessageTooLongText(computeLengthForSubmission(value()), maxLength()); return String(); }
String HTMLTextAreaElement::validationMessage() const { if (!willValidate()) return String(); if (customError()) return customValidationMessage(); if (valueMissing()) return locale().queryString(WebLocalizedString::ValidationValueMissing); if (tooLong()) return locale().validationMessageTooLongText(value().length(), maxLength()); if (tooShort()) return locale().validationMessageTooShortText(value().length(), minLength()); return String(); }
bool HTMLTextAreaElement::tooLong() const { return willValidate() && tooLong(value(), CheckDirtyFlag); }
bool HTMLTextAreaElement::valueMissing() const { return willValidate() && valueMissing(value()); }
bool HTMLTextAreaElement::tooShort() const { // We should not call value() for performance. return willValidate() && tooShort(nullptr, CheckDirtyFlag); }
bool HTMLTextAreaElement::valueMissing() const { // We should not call value() for performance. return willValidate() && valueMissing(nullptr); }