W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2012

[whatwg] Idea: pseudo-classes :valid and :invalid for whole form?

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 11 Jan 2012 00:05:41 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1201102351150.14154@ps20323.dreamhostps.com>
On Tue, 14 Jun 2011, Rafa?~B Mi?~Becki wrote:
>
> We already have required attribute and :valid plus :invalid classes, 
> which are nice. However some may want to display additional warning when 
> form wasn't filled correctly. Just some single warning, not specific 
> field-related. Could you consider adding form element class for such a 
> purpose?
> 
> Example:
> <p id="err">You've to fill all required fields</p>
> form:invalid #err {
> display: block;
> }

On Wed, 15 Jun 2011, Boris Zbarsky wrote:
> 
> Yep.  I think we should do it.

I've added this to the spec.


On Wed, 15 Jun 2011, Mounir Lamouri wrote:
> 
> By the way, for what it worth, I've mention that in this mailing list 
> and got no feedback. I'm happy to see someone else asking for it and I 
> might implement that in Gecko.

My apologies. Do you have a link to your earlier feedback on this so that 
I can audit why it never received a response?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 10 January 2012 16:05:41 UTC

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