W3C home > Mailing lists > Public > www-style@w3.org > August 2011

Re: Proposing a syntax for styling form validation messages

From: Jonathan Snook <jonathan@snook.ca>
Date: Wed, 31 Aug 2011 14:04:34 -0400
Cc: Peter Gasston <pgasston@gmail.com>
Message-Id: <D0478762-BB1D-4C42-BD30-721FE661D79E@snook.ca>
To: www-style@w3.org
> Forms that are validated in HTML5 display a message if errors are found during validation . Currently these error messages are given default styles by the browser, but there will be a requirement for developers to over-rule those styles.

For more finer-grained control over invalid fields, could you not use the CSS3 UI pseudo classes?

input:required:invalid + .error { }

This way you could customize the messaging any way you wish.

Received on Wednesday, 31 August 2011 18:05:09 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 February 2015 12:34:56 UTC