- From: Arun Ranganathan <arun@mozilla.com>
- Date: Wed, 06 Jul 2011 21:35:44 -0700
- To: Adrian Bateman <adrianba@microsoft.com>
- CC: "Web Applications Working Group WG (public-webapps@w3.org)" <public-webapps@w3.org>, "Jonas Sicking (jonas@sicking.cc)" <jonas@sicking.cc>
On 7/6/11 7:54 PM, Adrian Bateman wrote: > http://dev.w3.org/2006/webapi/FileAPI/#reading-a-file > > What is the expected behaviour for FileReader.readAsXXX(null)? Currently > I think both IE10 and Chrome fail silently and there are no events fired > whereas Firefox appears to throw an internal NS_ERROR_INVALID_POINTER > exception. > > The spec doesn't seem to state this explicitly and I can't tell if there > is supposed to be an implicit requirement from WebIDL. Perhaps the > expectation is that this falls into the error condition and should set > readyState to DONE, result to null, and process the error steps? > Any thoughts? My thoughts are that this should be an OperationNotAllowedException, and that this should be better defined. IMHO WebIDL doesn't touch on what happens when a method within a given API is called with null, so I think you're right to point this issue out (thanks!). -- A*
Received on Thursday, 7 July 2011 04:36:23 UTC