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

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

From: Eduard Pascual <herenvardo@gmail.com>
Date: Wed, 15 Jun 2011 10:31:15 +0200
Message-ID: <BANLkTikyH7CZWOzajTJzF6HDYgDhWf8WwA@mail.gmail.com>
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?
>
> Example:
> <p id="err">You've to fill all required fields</p>
> form:invalid #err {
> display: block;
> }
>

This would be more a CSS Selectors concern, and there are already some
ideas at [1] that would address this.

Regards,
Eduard Pascual

[1]: http://wiki.csswg.org/spec/selectors4
Received on Wednesday, 15 June 2011 01:31:15 UTC

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