W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2009

[whatwg] "C:\fakepath\" in HTML5

From: Bil Corry <bil@corry.biz>
Date: Tue, 24 Mar 2009 00:36:07 -0500
Message-ID: <49C87147.2090800@corry.biz>
Ian Hickson wrote on 3/24/2009 12:09 AM: 
> On Mon, 23 Mar 2009, Alex Henrie wrote:
>> First, this change is dishonest. It tells JavaScript that the file is 
>> stored somewhere that it is not. And why say anything, true or not, 
>> about where the file is stored at all? All JavaScript needs to know is 
>> that the file is called "upload.txt". It's easier to parse it that way 
>> too, since the "C:\fakepath\" will never have to be stripped off.
> 
> The original plan was to just have the filename. Unfortunately, it turns 
> out that if you do that, there are certain sites that break, because they 
> expect the path (and they expect a Windows path, no less). This is why 
> Opera and IE8 return a fake path -- not because HTML5 says to do it. In 
> fact I made HTML5 say it because they were doing it.

Which sites?  Any site that *requires* a Windows path clearly isn't interested in inter-operating with other browsers/platforms; heck, it means they've limited their testing to just Windows/IE.  Don't punish the rest of us for their poor testing/programming.


- Bil
Received on Monday, 23 March 2009 22:36:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:47:49 GMT