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 11748 - The "size" attribute is disallowed, but may be useful on input="file". IE, Firefox and Opera all implement it, allowing you to reliably change the size of the file path textbox (Webkit browsers don't use a textbox). Styling the file upload file using CSS,
Summary: The "size" attribute is disallowed, but may be useful on input="file". IE, Fi...
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-13 15:14 UTC by contributor
Modified: 2011-08-04 05:07 UTC (History)
6 users (show)

See Also:


Attachments

Description contributor 2011-01-13 15:14:50 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/number-state.html
Section: http://www.whatwg.org/specs/web-apps/current-work/#file-upload-state

Comment:
The "size" attribute is disallowed, but may be useful on input="file". IE,
Firefox and Opera all implement it, allowing you to reliably change the size
of the file path textbox (Webkit browsers don't use a textbox). Styling the
file upload file using CSS, in contrast, is inconsistent at best.

Posted from: 83.160.94.175
Comment 1 Aryeh Gregor 2011-01-13 23:03:30 UTC
Sounds like those browsers should just let CSS work correctly, and then the problem would go away, right?
Comment 2 Ian 'Hixie' Hickson 2011-02-16 09:38:48 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: For browsers, allowing authors to style a file input in general (whether by CSS or by size="") is a bit dodgy from a security perspective. I really highly recommend just letting browsers make them look like whatever they look like.
Comment 3 Michael[tm] Smith 2011-08-04 05:07:04 UTC
mass-moved component to LC1