mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Implemented FileReader::readAsArrayBuffer
This commit is contained in:
parent
7e96f87565
commit
51ef05bf3d
7 changed files with 73 additions and 55 deletions
|
@ -4,13 +4,13 @@
|
|||
|
||||
// http://dev.w3.org/2006/webapi/FileAPI/#APIASynch
|
||||
|
||||
//typedef (DOMString or ArrayBuffer) FileReaderResult;
|
||||
typedef (DOMString or object) FileReaderResult;
|
||||
[Constructor, Exposed=(Window,Worker)]
|
||||
interface FileReader: EventTarget {
|
||||
|
||||
// async read methods
|
||||
//[Throws]
|
||||
//void readAsArrayBuffer(Blob blob);
|
||||
[Throws]
|
||||
void readAsArrayBuffer(Blob blob);
|
||||
[Throws]
|
||||
void readAsText(Blob blob, optional DOMString label);
|
||||
[Throws]
|
||||
|
@ -25,8 +25,7 @@ interface FileReader: EventTarget {
|
|||
readonly attribute unsigned short readyState;
|
||||
|
||||
// File or Blob data
|
||||
//readonly attribute FileReaderResult? result;
|
||||
readonly attribute DOMString? result;
|
||||
readonly attribute FileReaderResult? result;
|
||||
|
||||
readonly attribute DOMException? error;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue