W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2017

[Bug 30057] New: Getting a fail because 'Attribute “placeholder” is only allowed when the input type is “email”, “number”, “number”, “password”, “password”, “text”, or “text”.'

From: <bugzilla@jessica.w3.org>
Date: Wed, 01 Feb 2017 17:11:51 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-30057-169@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=30057

            Bug ID: 30057
           Summary: Getting a fail because 'Attribute “placeholder” is
                    only allowed when the input type is “email”, “number”,
                    “number”, “password”, “password”, “text”, or “text”.'
           Product: Validator
           Version: HEAD
          Hardware: Macintosh
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: check
          Assignee: dave.null@w3.org
          Reporter: alex.dodd@songkick.com
        QA Contact: www-validator-cvs@w3.org
  Target Milestone: ---

Every now and again my HTML will fail because of the following reason:

'Attribute “placeholder” is only allowed when the input type is “email”,
“number”, “number”, “password”, “password”, “text”, or “text”.'

However after checking the HTML5 spec at
https://www.w3.org/TR/html5/forms.html#text-(type=text)-state-and-search-state-(type=search)
it says that 'The following common input element content attributes, IDL
attributes, and methods apply to the element: ..., placeholder, ..., and value
IDL attributes; select(), setRangeText(), and setSelectionRange() methods.'

So why is there a check for that?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 1 February 2017 17:12:00 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 1 February 2017 17:12:00 UTC