W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2009

[whatwg] validationMessage

From: Aryeh Gregor <Simetrical+w3c@gmail.com>
Date: Sun, 22 Nov 2009 17:09:57 -0500
Message-ID: <7c2a12e20911221409v51bb3305i96a4a11a5d7f93b5@mail.gmail.com>
On Thu, Nov 19, 2009 at 7:05 PM, Peter Kasting <pkasting at google.com> wrote:
> The UA can still do things like turn fields red or add warning sign
> icons or something if it likes.

What's validationMessage even supposed to return in these cases?  For
instance, suppose that a particular UA never returns an error for
max/min overflows because it always just snaps the value to the max or
min onchange and onsubmit.  (AFAICT the spec permits this.)  What is
it supposed to return if a script queries the input's validation
status when it's temporarily invalid, like if the user changed it but
didn't move the cursor out of the input yet?  The spec just says "a
suitably localized message that the user agent would show the user",
but in this case the user agent wouldn't normally show the user

FWIW, as an author, I can't think of any good use-cases for
validationMessage.  The only thing I can think of is if you're writing
your own error-display framework, but in that case, I'd really think
you'd write your own error messages.
Received on Sunday, 22 November 2009 14:09:57 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:19 UTC