NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 862 - Input element size attribute not allowed on HTML5.
Input element size attribute not allowed on HTML5.
Status: RESOLVED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: HTML5 schema
HEAD
All All
: P2 normal
Assigned To: Nobody
http://pastehtml.com/view/b9oi9ecpo.html
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-08 13:59 CEST by nviperr
Modified: 2011-10-18 10:06 CEST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nviperr 2011-10-08 13:59:42 CEST
http://validator.nu/?doc=http%3A%2F%2Fpastehtml.com%2Fview%2Fb9oi9ecpo.html

[code]<input type="file" size="10" />[/code]

Error: Attribute size not allowed on element input at this point.

It should be allowed by the HTML5 spec.
Comment 1 Michael[tm] Smith 2011-10-18 10:06:46 CEST
The size attribute is only allowed when the value of the type attribute is text, search, url, tel, email, or password. See the chart here:

http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary