Re: [whatwg] window.print() when printing is not supported

2010-01-07 Thread Markus Ernst
Robert O'Callahan schrieb: On Tue, Dec 29, 2009 at 6:07 AM, Boris Zbarsky bzbar...@mit.edu mailto:bzbar...@mit.edu wrote: Come to think of it, airline boarding passes are the only case in which I print things from the web using either print buttons or the browser's print

[whatwg] HTMLCanvasElement.toFile()

2010-01-07 Thread Jonas Sicking
Hi web fans, So at mozilla we've been implementing and playing around with various File APIs lately. One of the most common use cases today for file manipulation is photo uploaders. For example to sites like flickr, facebook, twitpic and icanhascheezburger. Some of these sites allow additional

Re: [whatwg] Inconsistent behavior for empty-string URLs

2010-01-07 Thread Nicholas Zakas
I'm going to take a lack of response to this question as a no. :) Given the disparate browser implementations for dealing with empty string URLs, it seems unlikely that anyone is relying upon the current behaviors, so I'd like to suggest this change be added to HTML5: For any img, link, script,

Re: [whatwg] Inconsistent behavior for empty-string URLs

2010-01-07 Thread Jonas Sicking
On Thu, Jan 7, 2010 at 1:03 PM, Nicholas Zakas nza...@yahoo-inc.com wrote: I'm going to take a lack of response to this question as a no. :) Given the disparate browser implementations for dealing with empty string URLs, it seems unlikely that anyone is relying upon the current behaviors, so

Re: [whatwg] HTMLCanvasElement.toFile()

2010-01-07 Thread Maciej Stachowiak
On Jan 7, 2010, at 11:41 AM, Jonas Sicking wrote: Hi web fans, So at mozilla we've been implementing and playing around with various File APIs lately. One of the most common use cases today for file manipulation is photo uploaders. For example to sites like flickr, facebook, twitpic and

Re: [whatwg] HTMLCanvasElement.toFile()

2010-01-07 Thread João Eiras
This function takes the same arguments as toDataURL(), plus an additional 'name' argument. It produces the same result as toDataURL(), except that it returns the result as a File object rather than as a data-url encoded string. This can then be directly sent using XMLHttpRequest. I think it

Re: [whatwg] HTMLCanvasElement.toFile()

2010-01-07 Thread Jonas Sicking
On Thu, Jan 7, 2010 at 2:22 PM, Maciej Stachowiak m...@apple.com wrote: On Jan 7, 2010, at 11:41 AM, Jonas Sicking wrote: Hi web fans, So at mozilla we've been implementing and playing around with various File APIs lately. One of the most common use cases today for file manipulation is

Re: [whatwg] HTMLCanvasElement.toFile()

2010-01-07 Thread Jonas Sicking
On Thu, Jan 7, 2010 at 2:27 PM, João Eiras jo...@opera.com wrote: This function takes the same arguments as toDataURL(), plus an additional 'name' argument. It produces the same result as toDataURL(), except that it returns the result as a File object rather than as a data-url encoded string.

Re: [whatwg] HTMLCanvasElement.toFile()

2010-01-07 Thread Jonas Sicking
On Thu, Jan 7, 2010 at 3:14 PM, Jonas Sicking jo...@sicking.cc wrote: On Thu, Jan 7, 2010 at 2:27 PM, João Eiras jo...@opera.com wrote: This function takes the same arguments as toDataURL(), plus an additional 'name' argument. It produces the same result as toDataURL(), except that it returns

Re: [whatwg] HTMLCanvasElement.toFile()

2010-01-07 Thread Shumpei Shiraishi
Hi. I think the method name toFile() is missleading, because I agree to the Maciej's openion. I don't think using File for temporary in-memory binary data, as opposed to a file on disk, makes sense. So, how about changing the method name to toBlob() and signature as follows? Blob toBlob(in

Re: [whatwg] HTMLCanvasElement.toFile()

2010-01-07 Thread Jonas Sicking
On Thu, Jan 7, 2010 at 5:27 PM, Shumpei Shiraishi shumpei.shirai...@gmail.com wrote: Hi. I think the method name toFile() is missleading, because I agree to the Maciej's openion. I don't think using File for temporary in-memory binary data, as opposed to a file on disk, makes sense. So,