@@ -953,7 +953,7 @@ interface FileReader: EventTarget {
953
953
// async read methods
954
954
void readAsArrayBuffer(Blob blob);
955
955
void readAsBinaryString(Blob blob);
956
- void readAsText(Blob blob, optional DOMString label );
956
+ void readAsText(Blob blob, optional DOMString encoding );
957
957
void readAsDataURL(Blob blob);
958
958
959
959
void abort();
@@ -1137,11 +1137,11 @@ the user agent must run the steps below.
1137
1137
The {{FileReader/readAsText()}} method</h5>
1138
1138
1139
1139
The {{FileReader/readAsText()}} method can be called with an optional parameter,
1140
- <dfn argument for="FileReader/readAsText(blob, label ), FileReader/readAsText(), FileReaderSync/readAsText(blob, label )" id="dfn-label">label </dfn> ,
1140
+ <dfn argument for="FileReader/readAsText(blob, encoding ), FileReader/readAsText(), FileReaderSync/readAsText(blob, encoding )" id="dfn-encoding" oldids="dfn- label">encoding </dfn> ,
1141
1141
which is a {{DOMString}} argument that represents the label of an encoding [[!Encoding]] ;
1142
1142
if provided, it must be used as part of the <a>encoding determination</a> used when processing this method call.
1143
1143
1144
- When the <dfn method for=FileReader id="dfn-readAsText">readAsText(blob, label )</dfn> method is called,
1144
+ When the <dfn method for=FileReader id="dfn-readAsText">readAsText(blob, encoding )</dfn> method is called,
1145
1145
the user agent must run the steps below.
1146
1146
1147
1147
1. If {{FileReader/readyState}} = {{FileReader/LOADING}} throw an {{InvalidStateError}} and <a>terminate this algorithm</a> .
@@ -1264,7 +1264,7 @@ take a {{Blob}} parameter.
1264
1264
This section defines this parameter.
1265
1265
1266
1266
<dl>
1267
- <dt> <dfn id="dfn-fileBlob" argument for="FileReader/readAsArrayBuffer(blob), FileReader/readAsBinaryString(blob), FileReader/readAsText(blob, label ), FileReader/readAsText(), FileReader/readAsDataURL(blob), URL/createObjectURL(blob), FileReaderSync/readAsArrayBuffer(blob), FileReaderSync/readAsBinaryString(blob), FileReaderSync/readAsText(blob, label ), FileReaderSync/readAsDataURL(blob)">blob</dfn>
1267
+ <dt> <dfn id="dfn-fileBlob" argument for="FileReader/readAsArrayBuffer(blob), FileReader/readAsBinaryString(blob), FileReader/readAsText(blob, encoding ), FileReader/readAsText(), FileReader/readAsDataURL(blob), URL/createObjectURL(blob), FileReaderSync/readAsArrayBuffer(blob), FileReaderSync/readAsBinaryString(blob), FileReaderSync/readAsText(blob, encoding ), FileReaderSync/readAsDataURL(blob)">blob</dfn>
1268
1268
<dd> This is a {{Blob}} argument
1269
1269
and must be a reference to a single {{File}} in a {{FileList}}
1270
1270
or a {{Blob}} argument not obtained from the underlying OS file system.
@@ -1278,8 +1278,8 @@ When reading {{Blob}} objects using the {{FileReader/readAsText()}} <a>read meth
1278
1278
the following <dfn id="encoding-determination">encoding determination</dfn> steps must be followed:
1279
1279
1280
1280
1. Let |encoding| be null.
1281
- 2. If the {{FileReader/readAsText()/label }} argument is present when calling the method,
1282
- set |encoding| to the result of the <a>getting an encoding</a> from {{FileReader/readAsText()/label }} .
1281
+ 2. If the {{FileReader/readAsText()/encoding }} argument is present when calling the method,
1282
+ set |encoding| to the result of the <a>getting an encoding</a> from {{FileReader/readAsText()/encoding }} .
1283
1283
3. If the <a>getting an encoding</a> steps above return failure,
1284
1284
then set |encoding| to null.
1285
1285
4. If |encoding| is null,
@@ -1423,7 +1423,7 @@ interface FileReaderSync {
1423
1423
1424
1424
ArrayBuffer readAsArrayBuffer(Blob blob);
1425
1425
DOMString readAsBinaryString(Blob blob);
1426
- DOMString readAsText(Blob blob, optional DOMString label );
1426
+ DOMString readAsText(Blob blob, optional DOMString encoding );
1427
1427
DOMString readAsDataURL(Blob blob);
1428
1428
};
1429
1429
</pre>
@@ -1440,7 +1440,7 @@ the {{FileReaderSync}} constructor must be available.
1440
1440
<h5 id="readAsTextSync">
1441
1441
The {{FileReaderSync/readAsText()}} method</h5>
1442
1442
1443
- When the <dfn method for=FileReaderSync id="dfn-readAsTextSync">readAsText(blob, label )</dfn> method is called,
1443
+ When the <dfn method for=FileReaderSync id="dfn-readAsTextSync">readAsText(blob, encoding )</dfn> method is called,
1444
1444
the following steps must be followed:
1445
1445
1446
1446
1. Initiate a <a>read operation</a> using the <code> blob</code> argument,
0 commit comments