[whatwg] required attribute in label

> 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