input type file, contenteditable=true, button not working

Discuss how to use and promote Web standards with the Mozilla Gecko engine.
Locked
bschwehn
Posts: 2
Joined: February 26th, 2014, 6:39 am

input type file, contenteditable=true, button not working

Post by bschwehn »

Hi, given the following html page

Code: Select all

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
   <div>
  <input type="file" />works <br />
   <input type="file" contenteditable="true"/>does not work <br />
   <input type="file" contenteditable="false"/>works <br />
    </div>
</body>
</html>


The second input's browse button does not work.

Personally, I think this is a bug in firefox. If contenteditable (non standard I believe) is not supported, it should be ignored, but not do the exact opposite of what is expected.
Before I create an bugzilla entry I wanted to hear your opinion first.

Ben
User avatar
DanRaisch
Moderator
Posts: 127187
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Re: input type file, contenteditable=true, button not workin

Post by DanRaisch »

Moving to Web Development.
User avatar
trolly
Moderator
Posts: 39851
Joined: August 22nd, 2005, 7:25 am

Re: input type file, contenteditable=true, button not workin

Post by trolly »

All three buttons work for me in Nightly.
What is "contenteditable" supposed to do?
Think for yourself. Otherwise you have to believe what other people tell you.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
bschwehn
Posts: 2
Joined: February 26th, 2014, 6:39 am

Re: input type file, contenteditable=true, button not workin

Post by bschwehn »

Ok, thanks, I tried only 27.0.1 (Windows).

I don't think the contenteditable attribute is supposed to do anything. I noticed it in web page where the button did not work in FF, but worked in IE and Chrome. I guess it was just an artefact accidentally left in the source code. The other browsers I've tried simply ignore it. If the nightly build does the same, I think this is the best way to handle it.
caim
New Member
Posts: 1
Joined: February 1st, 2016, 9:55 am

Re: input type file, contenteditable=true, button not workin

Post by caim »

It's not only the file type not working , apparently the select dropdown is blocked as well while inside contenteditable. Seems to be firefox quirk though couldn't find more info about it while scurrying the web
User avatar
trolly
Moderator
Posts: 39851
Joined: August 22nd, 2005, 7:25 am

Re: input type file, contenteditable=true, button not workin

Post by trolly »

If you have a problem now make a new thread. This one died almost two years ago.
Locking.
Think for yourself. Otherwise you have to believe what other people tell you.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
Locked