W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2010

[whatwg] select required

From: Jon Barnett <jonbarnett@gmail.com>
Date: Mon, 9 Aug 2010 13:42:29 -0500
Message-ID: <AANLkTinuAaLMwV8GR8Gb=6mhhxHzUWo--i1wY-Y=FmaU@mail.gmail.com>
I just read Hixie's message here:

I understand the reasoning for not implementing a bunch of new attributes
and functionality, I would still like to see <select required> even without
the other suggestions as requiring at least one option element to be
successful with a non-empty value.

I was beginning to write a <form> for a site and I thought I'd go ahead and
use <input required> and <textarea required> with some css:
[required] ~ label:after { content: '*' }
... and possibly javascript to read that attribute, etc.

But since I can't implement that on my <select> elements and still validate,
I plan to skip the required attribute entirely and use class names instead
for now so that all the form elements are consistent.

Jon Barnett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100809/7396d3f7/attachment.htm>
Received on Monday, 9 August 2010 11:42:29 UTC

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