[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”.'

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