Skip to content

Commit

Permalink
Editorial: use "set up" for TransformStreams rather than "create"
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreu Botella authored Jun 21, 2021
1 parent 75b988c commit 9c640be
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions .htmlcheckerfilter
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.*Text run is not in Unicode Normalization Form C.*
.*Document uses the Unicode Private Use Area.*
.*File was not checked. Files must have .html, .xhtml, .htm, or .xht extensions.*
.*Possible misuse of “aria-label”. \(If you disagree with this warning, file an issue report or send e-mail to [email protected].\).*
24 changes: 15 additions & 9 deletions encoding.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,7 @@ constructor steps are:
<li><p>If <var>options</var>["{{TextDecoderOptions/fatal}}"] is true, then set <a>this</a>'s
<a for=TextDecoderCommon>error mode</a> to "<code>fatal</code>".

<li><p>set <a>this</a>'s <a for=TextDecoderCommon>ignore BOM</a> to
<li><p>Set <a>this</a>'s <a for=TextDecoderCommon>ignore BOM</a> to
<var>options</var>["{{TextDecoderOptions/ignoreBOM}}"].

<li><p>Set <a>this</a>'s <a for=TextDecoderCommon>decoder</a> to a new instance of <a>this</a>'s
Expand All @@ -1744,12 +1744,15 @@ constructor steps are:
<li><p>Let <var>flushAlgorithm</var> be an algorithm which takes no arguments and runs the
<a>flush and enqueue</a> algorithm with <a>this</a>.

<li><p>Set <a>this</a>'s <a for=GenericTransformStream>transform</a> to the result of
<a for=TransformStream>creating</a> a {{TransformStream}} with
<a for=TransformStream/create><var ignore>transformAlgorithm</var></a> set to
<li><p>Let <var>transformStream</var> be a [=new=] {{TransformStream}}.

<li><p>[=TransformStream/Set up=] <var>transformStream</var> with
<a for="TransformStream/set up"><var ignore>transformAlgorithm</var></a> set to
<var>transformAlgorithm</var> and
<a for=TransformStream/create><var ignore>flushAlgorithm</var></a> set to
<a for="TransformStream/set up"><var ignore>flushAlgorithm</var></a> set to
<var>flushAlgorithm</var>.

<li><p>Set <a>this</a>'s <a for=GenericTransformStream>transform</a> to <var>transformStream</var>.
</ol>

<p>The <dfn>decode and enqueue a chunk</dfn> algorithm, given a {{TextDecoderStream}} object
Expand Down Expand Up @@ -1892,12 +1895,15 @@ constructor steps are:
<li><p>Let <var>flushAlgorithm</var> be an algorithm which runs the <a>encode and flush</a>
algorithm with <a>this</a>.

<li><p>Set <a>this</a>'s <a for=GenericTransformStream>transform</a> to the result of
<a for=TransformStream>creating</a> a {{TransformStream}} with
<a for=TransformStream/create><var ignore>transformAlgorithm</var></a> set to
<li><p>Let <var>transformStream</var> be a [=new=] {{TransformStream}}.

<li><p>[=TransformStream/Set up=] <var>transformStream</var> with
<a for="TransformStream/set up"><var ignore>transformAlgorithm</var></a> set to
<var>transformAlgorithm</var> and
<a for=TransformStream/create><var ignore>flushAlgorithm</var></a> set to
<a for="TransformStream/set up"><var ignore>flushAlgorithm</var></a> set to
<var>flushAlgorithm</var>.

<li><p>Set <a>this</a>'s <a for=GenericTransformStream>transform</a> to <var>transformStream</var>.
</ol>

<hr>
Expand Down

0 comments on commit 9c640be

Please sign in to comment.