W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

Re: [File API] events vs callbacks

From: Nikunj R. Mehta <nikunj.mehta@oracle.com>
Date: Mon, 17 Aug 2009 16:21:48 -0700
Cc: Web Applications Working Group WG <public-webapps@w3.org>
Message-Id: <920E998C-78E9-4212-B4F8-7B502F87A223@oracle.com>
To: Anne van Kesteren <annevk@opera.com>

On Aug 12, 2009, at 4:40 AM, Anne van Kesteren wrote:

> On Tue, 11 Aug 2009 22:57:51 +0200, Jonas Sicking <jonas@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 filedata URL scheme some kind of  
> exception needs to be thrown. Similarly to when you would use mailto  
> or something.

Step 7 in the algorithm for open() [1] says to reject URLs in  
unsupported schemes. Is there a way to find out supported schemes? The  
spec says nothing normative about schemes other than HTTP (what about  
HTTPS). Therefore, is it fair to assume that filedata uris are not  
supported in XHR and that any browser doing otherwise is doing a favor?


[1] http://www.w3.org/TR/XMLHttpRequest/#xmlhttprequest
Received on Monday, 17 August 2009 23:24:37 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:18 UTC