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

[whatwg] required attribute in label

From: Chris Cressman <chris@chriscressman.com>
Date: Sat, 21 Aug 2010 09:26:34 -0400
Message-ID: <AANLkTimex_=ZFaVYNsTbRxc1GbxjPx-tNQVk05Gg-159@mail.gmail.com>
> Why not make "required" an acceptable attribute for the label element?

The class or title attribute can solve your problem:

<label class="required">
label.required:after {content:"*"}

<label title="required">
label[title~="required"]:after {content:"*"}
Received on Saturday, 21 August 2010 06:26:34 UTC

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