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

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

From: Mounir Lamouri <mounir@lamouri.fr>
Date: Wed, 11 Jan 2012 01:22:54 +0100
Message-ID: <4F0CD65E.3030809@lamouri.fr>
On 01/11/2012 01:05 AM, Ian Hickson wrote:
> 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.

Wouldn't be interesting to have the same thing for <fieldset>?

--
Mounir
Received on Tuesday, 10 January 2012 16:22:54 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:10 UTC