Skip to content

<label role=button> ignored for <input type=file> #713

@rr-

Description

@rr-
Issue type:
  • Feature request / bug report
Version:
Vimperator:	3.16.0 (created: 2017/02/05 23:56:12)
Firefox:	Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
Description:

Consider following HTML, whose purpose is to have conveniently stylizable <input type=file>:

<input type="file" id="blah" style="display: none"/>
<label role="button" for="blah">Actually I am clickable</label>

The label, thanks to its role="button" attribute, is clickable and thanks to its for="blah" attribute, it's connected to the <input type="file"> control.

Clicking on the label or focusing it using f opens file browser.

Expected behavior:

Clicking the label, rather than opening native file browser, should have the same effect as clicking the <input type="file"> itself (i.e. ask for the file path in the liberator console.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions