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 30057 - Getting a fail because 'Attribute “placeholder” is only allowed when the input type is “email”, “number”, “number”, “password”, “password”, “text”, or “text”.'
Summary: Getting a fail because 'Attribute “placeholder” is only allowed when the inpu...
Status: NEW
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: Macintosh All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-01 17:11 UTC by Alex Dodd
Modified: 2017-05-21 04:29 UTC (History)
1 user (show)

See Also:


Attachments

Description Alex Dodd 2017-02-01 17:11:51 UTC
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?