<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.3">
On Fri, 2010-06-18 at 11:35 +0200, Mounir Lamouri wrote:
I'm wondering why select element do not have a required attribute. It
seems to be perfectly suitable. With the required attribute, select
element would be able to suffer from being missing and the :required
pseudo-class could apply.
Is there a reason why the select element has no required attribute or
it's only an omission?
Required as in it should always have a value sent? If so, then it always does. The default value for a select element is not an empty string as an <option> is always there (unless someone has been stupid enough to create an empty select list.)<BR>
As such, some sort of value will always be sent.<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">