This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28362 - Input Type "email" with attribute "placeholder" comes up as error. Incorrect W3C HTML5 Standards.
Summary: Input Type "email" with attribute "placeholder" comes up as error. Incorrect ...
Status: RESOLVED FIXED
Alias: None
Product: HTML Checker
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael[tm] Smith
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
: 28354 28363 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-03-28 22:03 UTC by Ryan Wickland
Modified: 2016-03-10 09:17 UTC (History)
5 users (show)

See Also:


Attachments

Description Ryan Wickland 2015-03-28 22:03:31 UTC
W3C Bug Description:

validator.w3.org error is described as: "Attribute placeholder is only allowed when the input type is e-mail, number, password, search, tel, text, or url."

According to World Wide Web Consortium (W3C) HTML5 Standards: Attribute "placeholder" can be used with input type "email" (not "e-mail" as the W3C validator suggests). However, this page does validate at validator.nu

Here is our test URL: http://www.unisquare.com/w3c-validation-error.php
Comment 1 wendt.withers 2015-03-29 22:45:36 UTC
The following attributes are also flagged incorrectly:
required
maxlength

Example:
<input placeholder="test@example.com" required="required" name="email" type="email" value="" maxlength="75" id="email">
Comment 2 wendt.withers 2015-03-29 23:56:01 UTC
*** Bug 28354 has been marked as a duplicate of this bug. ***
Comment 3 wendt.withers 2015-03-29 23:57:27 UTC
*** Bug 28363 has been marked as a duplicate of this bug. ***
Comment 4 Michael[tm] Smith 2015-03-30 08:30:21 UTC
Thanks for reporting this. It was caused by a regression I made with a recent code change. But it should be fixed now. If not, please reopen this bug.
Comment 5 Michael[tm] Smith 2015-03-30 08:31:54 UTC
(In reply to wendt.withers from comment #1)
> The following attributes are also flagged incorrectly:
> required
> maxlength
> 
> Example:
> <input placeholder="test@example.com" required="required" name="email"
> type="email" value="" maxlength="75" id="email">

Yeah, the root cause there was the same regression, fixed now.