Skip to content

Commit 3dbee29

Browse files
beaufortfrancoiskenchris
authored andcommitted
encoding should be only for BufferSource data source (#531)
1 parent 7d3e07e commit 3dbee29

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2774,6 +2774,11 @@ <h3><dfn>Writing content</dfn></h3>
27742774
<dl>
27752775
<dt>{{DOMString}}</dt>
27762776
<ol>
2777+
<li>
2778+
If |record|'s <a>encoding</a> is neither `undefined` nor
2779+
"`utf-8`", [= exception/throw =] a {{TypeError}} and abort
2780+
these steps.
2781+
</li>
27772782
<li>
27782783
Let |encoding label:string| be "`utf-8`".
27792784
</li>
@@ -2787,7 +2792,7 @@ <h3><dfn>Writing content</dfn></h3>
27872792
<li>
27882793
If |encoding label| is not equal to "`utf-8`", "`utf-16`",
27892794
"`utf-16le`" or "`utf-16be`" [= exception/throw =] a
2790-
{{TypeError}}.
2795+
{{TypeError}} and abort these steps.
27912796
</li>
27922797
</ol>
27932798
</dl>

0 commit comments

Comments
 (0)