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

Error validating html5

From: aerotoro . <aerotoro@gmail.com>
Date: Sat, 28 Mar 2015 11:52:18 +0000
Message-ID: <CAMwK+xKkGaxA-SdPoayy=Q6BhcfK9=NJv2ZW+ofoZSTXKtgXdA@mail.gmail.com>
To: www-validator@w3.org
Hi,

I think the validator tool has a little bug dealing with email type inputs.
Your validator shows the following error messages:


   1. *Line 40, Column 4079*: Attribute placeholder is only allowed when
   the input type is e-mail, number, password, search, tel, text, or url.

   …nter your email address." type="email"> <p class="help-block
text-danger"></p>…

   ✉
   <http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fdavidvicenteranz.appspot.com%2F;errmsg_id=html5#errormsg>
   2. [image: Error] *Line 40, Column 4079*: 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.

   …nter your email address." type="email"> <p class="help-block
text-danger"></p>…



As you can see type is email and keeps throwing an error.

I put here complete tag declaration

<input class="form-control" placeholder="Email Address" id="email" required
data-validation-required-message="Please enter your email address."
type="email" >

May be your validator is looking for "e-mail" and not "email" input type??

With other validation tools and the same code I don't have any validations
errors.


BR,

David.
Received on Monday, 30 March 2015 08:21:37 UTC

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