W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2008

[whatwg] WebForms2 validity

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 28 Oct 2008 20:09:22 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0810282007510.1237@hixie.dreamhostps.com>
On Fri, 9 Feb 2007, Sean Hogan wrote:
>
> I might be missing something obvious, but...
> 
> When are ValidityState properties updated? And when are CSS pseudo-classes
> (:valid, :invalid, :in-range, :out-of-range) updated? 

Continually (in particular whenever the constraints or the values change 
-- the validity states are defined in terms of those values).


> Many textual input form-controls would begin in one or another invalid 
> state (valueMissing, patternMismatch) however authors would typically 
> want CSS validity styles to apply only after checkValidity() - either a 
> manual one or the automatic one performed by form-submission.

Why?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 28 October 2008 13:09:22 UTC

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