writeEncoding addition and some typo fixes
authorTakeshi Yoshino <tyoshino@google.com>
Wed, 06 Nov 2013 14:45:46 +0900
changeset 43 2f97222a7065
parent 42 b33065490ecb
child 44 e99d88125d09
writeEncoding addition and some typo fixes
preview.html
--- a/preview.html	Wed Nov 06 14:02:42 2013 +0900
+++ b/preview.html	Wed Nov 06 14:45:46 2013 +0900
@@ -176,7 +176,7 @@
 		<p>
 			The <a>ReadableByteStream</a> interface defines a protocol for data producing APIs to communicate with other data consuming APIs or code.
 			It provides a <code>read</code> method for reading data
-			from a <a>ReadableByteStream</a> as a <a>ByteStreamConsumeResult</a>, which provides the data as a <a>Blob</a>, <a>ArrayBufferView</a>, or as <a>DOMString</a>,
+			from a <a>ReadableByteStream</a> as a <a>ByteStreamConsumeResult</a>, which provides the data as a <a>Blob</a>, <a>ArrayBufferView</a>, or <a>DOMString</a>,
 			and should happen asynchronously on the user agent’s main thread. Additionally, the stream can also be used in API <a href="#consumers">consumers</a> such as a media element.
 		</p>
 
@@ -300,6 +300,19 @@
 		</p>
 
 		<dl class="idl" title="interface WritableByteStream">
+			<dt>attribute DOMString writeEncoding</dt>
+			<dd>
+				<p>
+					Specifies a <a>DOMString</a> that represents the label of an encoding [[!EncodingDetermination]].
+					If set, it will be used as part of the encoding determination used when processing a <code>write()</code> method call.
+					It will return the label last set, or the empty <a>DOMString</a> if never set.
+				</p>
+
+				<p>
+					This parameter is not designed to be specified as an argument of write() since it's not likely to be changed frequently.
+				</p>
+			</dd>
+
 			<dt>Promise write()</dt>
 			<dd>
 				<p>
@@ -358,7 +371,11 @@
 				<p>
 					Specifies a <a>DOMString</a> that represents the label of an encoding [[!EncodingDetermination]].
 					If set, it will be used as part of the encoding determination used when processing a <code>read</code> method call.
-					If not set, it will return the empty <a>DOMString</a>.
+					It will return the label last set, or the empty <a>DOMString</a> if never set.
+				</p>
+
+				<p>
+					This parameter is not designed to be specified as an argument of read() since it's not likely to be changed frequently.
 				</p>
 			</dd>