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

[FileAPI] FileReader.readAsXXX when pased null

From: Adrian Bateman <adrianba@microsoft.com>
Date: Thu, 7 Jul 2011 02:54:55 +0000
To: "Web Applications Working Group WG (public-webapps@w3.org)" <public-webapps@w3.org>
CC: "arun@mozilla.com" <arun@mozilla.com>, "Jonas Sicking (jonas@sicking.cc)" <jonas@sicking.cc>
Message-ID: <104E6B5B6535E849970CDFBB1C5216EB434F16B0@TK5EX14MBXC136.redmond.corp.microsoft.com>

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

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?

Received on Thursday, 7 July 2011 02:55:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 13:55:43 UTC