Skip to content

Commit

Permalink
Use BufferSource rather than ArrayBufferView https://www.w3.org/Bugs/…
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Oct 4, 2014
1 parent 193297f commit 99cfaf7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
13 changes: 5 additions & 8 deletions Overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<p><a class="logo" href="//whatwg.org/"><img alt="WHATWG" height="100" src="//resources.whatwg.org/logo-encoding.svg" width="100"></a></p>
<h1>Encoding</h1>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-3-october-2014">Living Standard — Last Updated 3 October 2014</h2>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-4-october-2014">Living Standard — Last Updated 4 October 2014</h2>

<dl>
<dt>Participate:
Expand Down Expand Up @@ -1033,7 +1033,7 @@ <h3 id="interface-textdecoder"><span class="secno">7.1 </span>Interface <code ti
readonly attribute DOMString <a href="#dom-textdecoder-encoding" title="dom-TextDecoder-encoding">encoding</a>;
readonly attribute boolean <a href="#dom-textdecoder-fatal" title="dom-TextDecoder-fatal">fatal</a>;
readonly attribute boolean <a href="#dom-textdecoder-ignorebom" title="dom-TextDecoder-ignoreBOM">ignoreBOM</a>;
USVString <a href="#dom-textdecoder-decode" title="dom-TextDecoder-decode">decode</a>(optional ArrayBufferView <var title="">input</var>, optional <a href="#textdecodeoptions">TextDecodeOptions</a> <var title="">options</var>);
USVString <a href="#dom-textdecoder-decode" title="dom-TextDecoder-decode">decode</a>(optional BufferSource <var title="">input</var>, optional <a href="#textdecodeoptions">TextDecodeOptions</a> <var title="">options</var>);
};</pre>

<p>A <a href="#textdecoder"><code>TextDecoder</code></a> object has an associated <b>encoding</b>, <b>decoder</b>,
Expand Down Expand Up @@ -1160,12 +1160,9 @@ <h3 id="interface-textdecoder"><span class="secno">7.1 </span>Interface <code ti
<li><p>If <var title="">options</var>'s <code title="">stream</code> is true, set the
<b>streaming flag</b>, and unset the <b>streaming flag</b> otherwise.

<li><p>If <var title="">input</var> is given, then given
<var title="">input</var>'s <code title="">buffer</code>,
<code title="">byteOffset</code>, and <code title="">byteLength</code>,
<a href="#concept-stream-push" title="concept-stream-push">push</a> <code title="">byteLength</code> bytes from
<code title="">buffer</code>, starting at <code title="">byteOffset</code>, to <b>stream</b>.
<!-- XXX JavaScript / IDL really needs to make this simpler -->
<li><p>If <var title="">input</var> is given, <a href="#concept-stream-push" title="concept-stream-push">push</a> a
<a class="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-get-buffer-source-copy" title="get a copy of the bytes held by the buffer source">copy of</a>
<var title="">input</var> to <b>stream</b>.

<li><p>Let <var>output</var> be a new <a href="#concept-stream" title="concept-stream">stream</a>.

Expand Down
11 changes: 4 additions & 7 deletions Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ <h3>Interface <code title>TextDecoder</code></h3>
readonly attribute DOMString <span title=dom-TextDecoder-encoding>encoding</span>;
readonly attribute boolean <span title=dom-TextDecoder-fatal>fatal</span>;
readonly attribute boolean <span title=dom-TextDecoder-ignoreBOM>ignoreBOM</span>;
USVString <span title=dom-TextDecoder-decode>decode</span>(optional ArrayBufferView <var title>input</var>, optional <span>TextDecodeOptions</span> <var title>options</var>);
USVString <span title=dom-TextDecoder-decode>decode</span>(optional BufferSource <var title>input</var>, optional <span>TextDecodeOptions</span> <var title>options</var>);
};</pre>

<p>A <code>TextDecoder</code> object has an associated <b>encoding</b>, <b>decoder</b>,
Expand Down Expand Up @@ -1076,12 +1076,9 @@ <h3>Interface <code title>TextDecoder</code></h3>
<li><p>If <var title>options</var>'s <code title>stream</code> is true, set the
<b>streaming flag</b>, and unset the <b>streaming flag</b> otherwise.

<li><p>If <var title>input</var> is given, then given
<var title>input</var>'s <code title>buffer</code>,
<code title>byteOffset</code>, and <code title>byteLength</code>,
<span title=concept-stream-push>push</span> <code title>byteLength</code> bytes from
<code title>buffer</code>, starting at <code title>byteOffset</code>, to <b>stream</b>.
<!-- XXX JavaScript / IDL really needs to make this simpler -->
<li><p>If <var title>input</var> is given, <span title=concept-stream-push>push</span> a
<span data-anolis-spec=webidl title="get a copy of the bytes held by the buffer source">copy of</span>
<var title>input</var> to <b>stream</b>.

<li><p>Let <var>output</var> be a new <span title=concept-stream>stream</span>.

Expand Down

0 comments on commit 99cfaf7

Please sign in to comment.