Re: Alternative File API

2009-08-17 Thread Garrett Smith
(posting order moved to the bottom). On Sun, Aug 16, 2009 at 2:33 PM, Michael Nordmanmicha...@google.com wrote: On Sat, Aug 15, 2009 at 9:19 AM, Garrett Smith dhtmlkitc...@gmail.com wrote: On Tue, Aug 11, 2009 at 7:20 PM, Jonas Sickingjo...@sicking.cc wrote: Here is an alternative proposal

Window Modes - best practice and scalability

2009-08-17 Thread richard.tibbett
Hi, We have been going through the latest Early Draft [1] of the Window Modes spec and I have followed the latest discussion that I could discern from the mailing list ([2], [3]). There was a request for feedback on the window modes spec and I hope this feedback is useful and timely. Initially

Re: Alternative File API

2009-08-17 Thread Olli Pettay
On 8/17/09 12:33 AM, Michael Nordman wrote: Strictly speaking, I think the seperate 'Reader' class makes for a more correct API. The two corners above would not conflict since each would presumably be working with a distinct FileReader object. And the seperate 'Reader' with event handlers seems

Re: Widgets PC CR Question

2009-08-17 Thread Marcos Caceres
On Fri, Aug 14, 2009 at 6:46 PM, Jeff Deckerw3c-upda...@celestialwake.com wrote: Hi All, I noticed in the PC under Section 8.8.1 Attributes of the author Element that the href attribute includes a line saying It is optional for authors to use the xml:lang attribute with an author element.

Re: Alternative File API

2009-08-17 Thread Arun Ranganathan
Michael Nordman wrote: Currently we have File and FileData, where a File object ISA FileData object... completion is delivered via readXXX method completion callbacks. It would be easy to add progress callbacks to those readXXX methods. I think Garrets point about two different corners of the

[widgets] PC Test Suite

2009-08-17 Thread Marcos Caceres
I've now written the first draft of the PC test suite Prologue which tells people how to write a test and what templates they can use. I've also outlined what user agents need to support to run the tests (at a mim, HTML4.01, and CSS 1 - though the tests are written to conform to HTML5). I'm still

Feedback on the Progress Events spec

2009-08-17 Thread Ian Hickson
Is there a record anywhere of outstanding feedback on the progress events spec? I looked in the issue tracker but there was only one issue there. I was trying to integrate HTML5 with Progress Events today and found the following problems: - ProgressEvent.total has a requirement that I don't

Using progress events for other purposes

2009-08-17 Thread Ian Hickson
The Application Cache feature in HTML5 uses an event named 'progress' as part of the process, in a manner mostly unrelated to the rest of the progress events feature. It needs two values of context information (number of files being downloaded, number of files obtained so far). Should I just

Re: [File API] events vs callbacks

2009-08-17 Thread Nikunj R. Mehta
On Aug 12, 2009, at 4:40 AM, Anne van Kesteren wrote: On Tue, 11 Aug 2009 22:57:51 +0200, Jonas Sicking jo...@sicking.cc wrote: xhr.open(GET, myFile.slice(x, y).fileDataURI); xhr.send(); FWIW I'm opposed to abusing XMLHttpRequest in this way and I actually think that when using the

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-17 Thread Nikunj R. Mehta
On Aug 12, 2009, at 7:29 AM, Arun Ranganathan wrote: Gregg Tavares wrote: How about this? Why make a new API for getting the contents of a file (local or otherwise) when we already have one which is XHR? What if FileList was just array of File objects where each File object is just a

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-17 Thread Arun Ranganathan
Nikunj R. Mehta wrote: On Aug 12, 2009, at 7:29 AM, Arun Ranganathan wrote: Gregg Tavares wrote: How about this? Why make a new API for getting the contents of a file (local or otherwise) when we already have one which is XHR? What if FileList was just array of File objects where each

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-17 Thread Michael A. Puls II
On Mon, 17 Aug 2009 20:12:50 -0400, Arun Ranganathan a...@mozilla.com wrote: Nikunj R. Mehta wrote: On Aug 12, 2009, at 7:29 AM, Arun Ranganathan wrote: Gregg Tavares wrote: How about this? Why make a new API for getting the contents of a file (local or otherwise) when we already have

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-17 Thread Arun Ranganathan
Nikunj R. Mehta wrote: On Aug 5, 2009, at 6:55 PM, Jonas Sicking wrote: What's the use-case for getAsBase64? I have another use case for this. The Atom Publishing protocol per RFC 5023 [1] accepts inline binary data represented in base 64 encoding. In order to submit binary inline

FileReader objects for loading local files on local web pages

2009-08-17 Thread Michael A. Puls II
I think it'd be great to have a *simple to use* API specifically for loading local files on local pages (file://). There's already DOM3 Load and Save, but few want anything to do with that (it's not simple for one). There's also the previous document.load, but it's half broken in Opera,

Re: Alternative File API

2009-08-17 Thread Jonas Sicking
On Mon, Aug 17, 2009 at 2:45 AM, Olli Pettayolli.pet...@helsinki.fi wrote: I'd do var reader = new DataReader(someDataObject, DataReader.BINARY); reader.onload =  function(evt) {    // grab the data using evt.target.getData();  }; reader.read(); What's the advantage of this API over what I