W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2011

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

From: Mounir Lamouri <mounir@lamouri.fr>
Date: Wed, 15 Jun 2011 19:08:44 +0200
Message-ID: <4DF8E71C.5000207@lamouri.fr>
On 06/15/2011 07:00 PM, Boris Zbarsky wrote:
> On 6/15/11 4:31 AM, Eduard Pascual wrote:
>> 2011/6/14 Rafa? Mi?ecki<zajec5 at gmail.com>:
>>> 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?
>>
>> This would be more a CSS Selectors concern
>
> No, it wouldn't. The point here is to style based on a _form_ that is
> invalid. Whether a form is valid or not is up to the language defining
> forms, that being HTML.

Isn't that somewhat related to CSS UI too?

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.

--
Mounir
Received on Wednesday, 15 June 2011 10:08:44 UTC

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