W3C home > Mailing lists > Public > www-validator@w3.org > March 2015

HTML5 Required Check Fails for Fields of Type email

From: Scott Sinclair <scott.sinclair@wethinksolutions.com>
Date: Sat, 28 Mar 2015 02:01:20 -0400
Message-ID: <CALvxduKfo+Kx96fgxx5SQ5=jNa6B1k6ttPevQtCeAKZgbuwOjQ@mail.gmail.com>
To: www-validator@w3.org
The following field definition fails to validate even though I believe it
is perfectly valid:

<input type="email" name="email" onblur="this.value =
trimBlanks(this,'LeadingSpaces');" required="required" />

Attribute required is only allowed when the input type is checkbox, date,
datetime, datetime-local, e-mail, file, month, number, password, radio,
search, tel, text, time, url, or week.

A sample URL is:


Scott Sinclair
We Think Solutions <http://www.wethinksolutions.com>
1-800-231-1020 x33
Received on Monday, 30 March 2015 08:31:14 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:12 UTC