This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21392 - FileReader does not specify behavior on invalid input
Summary: FileReader does not specify behavior on invalid input
Status: RESOLVED INVALID
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: File API (show other bugs)
Version: unspecified
Hardware: All All
: P2 trivial
Target Milestone: ---
Assignee: Arun
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-25 23:18 UTC by David Leston
Modified: 2013-03-26 00:04 UTC (History)
2 users (show)

See Also:


Attachments

Description David Leston 2013-03-25 23:18:56 UTC
No behavior is specified for when a "readAs" method on FileReader is called with invalid input. In Chromium 26.0.1410.40, no exception is thrown and the onerror callback is not invoked.

Chromium discussion thread:
https://groups.google.com/a/chromium.org/d/topic/chromium-discuss/wEMo0jnlM-w/discussion

Chromium behavior discussed on StackOverflow:
http://stackoverflow.com/questions/6999928/html5-filereader-functions-not-getting-called
Comment 1 Glenn Maynard 2013-03-25 23:50:46 UTC
This is defined to throw TypeError.  http://dev.w3.org/2006/webapi/WebIDL/#es-interface