[Bug 28354] New: Placeholder on inputs with type="email" wrongly being flagged as invalid.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=28354

            Bug ID: 28354
           Summary: Placeholder on inputs with type="email" wrongly being
                    flagged as invalid.
           Product: Validator
           Version: HEAD
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5
          Assignee: mike+validator@w3.org
          Reporter: phil@cyberws.co.uk
        QA Contact: www-validator-cvs@w3.org

The following error messages :-

"Attribute placeholder is only allowed when the input type is e-mail, number,
password, search, tel, text, or url."

and 

"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."

Are incorrect for the following markup.

<input id="email" name="email" class="form-control" placeholder="Enter Email"
type="email" required>

The correct type is "email" and NOT "e-mail" as confirmed by MDN documentation.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input

Please advise.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 27 March 2015 13:09:24 UTC