[whatwg] XMLHttpRequest and HTML5

Jonas Sicking jonas at sicking.cc
Tue Dec 7 16:49:01 PST 2010


On Tue, Dec 7, 2010 at 3:48 PM, Ian Hickson <ian at hixie.ch> wrote:
>> > > If we can do all this that should turn it into a one-way dependency
>> > > with most definitions being completely self-contained.
>> >
>> > I'm not sure it's worth it in the case of the origin thing.
>>
>> So what happens when we define how to get a Document out of a File?
>
> We would update the HTML spec. Or, now, the File spec can define it.
> Either is fine by me. I still think that we should set up a
> post-processing step that merges all these specs into one anyway. :-)

For what it's worth, this is already possible in Firefox. We support
using XMLHttpRequest to load from from a File using

xhr = new XMLHttpRequest;
xhr.open("GET", URL.createObjectURL(myfile), false);
xhr.send();
var documentFromFile = xhr.responseXML;

/ Jonas



More information about the whatwg mailing list