- From: Domenic Denicola <notifications@github.com>
- Date: Fri, 08 Mar 2019 15:10:28 -0800
- To: w3c/FileAPI <FileAPI@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 8 March 2019 23:10:51 UTC
domenic 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=].
> This also brings up the question if blob.text() should
Oooh, interesting question. I tend to think it'd be a bit frustrating for authors and users if the charset was ignored, especially if interoperating with legacy systems or files on disk that are not properly UTF-8 encoded. But, I'm not sure.
--
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_r263960640
Received on Friday, 8 March 2019 23:10:51 UTC