Closed Bug 6131 Opened 26 years ago Closed 25 years ago

<input type="file"> control: Need mechanism to set button text

Categories

(Core :: XUL, defect, P3)

x86
Windows NT
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: cmanske, Assigned: eric)

Details

The button part of the file picker widget is labeled "Browse..." It is currently hard-coded string. The HTML 4.0 spec is lacking in details about this widget, but we need an attribute to set the button text. Note that "value" is used for the contents of the edit field.
Status: NEW → ASSIGNED
Target Milestone: M7
Target Milestone: M7 → M9
Assignee: kmcclusk → evaughan
Status: ASSIGNED → NEW
Eric, I'm re-assigning to you since your working on this form element.
Target Milestone: M9 → M11
No idea how to do this. Moving to m11
This is a funky widget. I decided not to use it in the editor code because of its limitations. Its easy to just use a text field and a button to get control of all attributes, button location, etc. Just an observation.
Actually this widget now uses anonymous nodes so you can change almoset everything about it except the text value on the button. To change the button inside try: input[type="file"] input[type="button"] { background-color: green; } This will make the background color of the browse button green.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WONTFIX
CSS2 specifies no way of setting this. But its easy enough to just create your own if you want custom behavior so I am going to close this out as won't fix.
You need to log in before you can comment on or make changes to this bug.