- From: Anne van Kesteren <notifications@github.com>
- Date: Mon, 11 Mar 2019 02:21:48 -0700
- To: w3c/FileAPI <FileAPI@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 11 March 2019 09:22:09 UTC
annevk commented on this pull request. > + 1. If a [=file read error=] occured while reading |bytes|, [$ReadableStream/error$] + |stream| with a [=failure reason=] and abort these steps. + 1. [=ReadableStream/Enqueue=] |bytes| into |stream|. + + Issue: We need to specify more concretely what reading from a Blob actually does, and what + possible errors can happen. + +<h4 id="text-method-algo"> +The text method</h4> + +The <dfn method for=Blob>text()</dfn> method returns the contents +of the blob as a {{USVString}}. + +It must act as follows: + +1. Let |stream| be the the result of [=getting a stream for a Blob=] for the [=context object=]. I did it because it's a convenience method and everyone should migrate to UTF-8. It's not clear to me how useful it would be to consider other encodings here if you only look at the MIME type as file systems wouldn't give you that information at that level, presumably. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/FileAPI/pull/117#discussion_r264143604
Received on Monday, 11 March 2019 09:22:09 UTC