On Mar 8, 2013, at 8:28 AM, Henri Sivonen wrote: > Additionally, I think http://www.w3.org/TR/FileAPI/#dfn-type should > clarify that the browser must not use statistical methods to guess the > charset parameter part of the type as part of "determining" the type. > Firefox currently asks magic 8-ball, but the magic 8-ball is broken. > AFAICT, WebKit does not guess, so I hope it's possible to remove the > guessing from Firefox. > > (The guessing in Firefox relies on a big chunk of legacy code that's > broken and shows no signs of ever getting fixed properly. The File API > is currently the only thing in Firefox that exposes the mysterious > behavior of said legacy code to the Web using the default settings of > Firefox, so I'm hoping to remove the big chunk of legacy code instead > of fixing it properly.)
I think we can jettison Fx's use of magic 8-ball code with this update: http://dev.w3.org/2006/webapi/FileAPI/#dfn-type Additional spec'ing on when to ignore the string if provided incorrectly will follow. -- A*