File tree Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -2876,13 +2876,27 @@ <h3><dfn>Writing or pushing content</dfn></h3>
2876
2876
Let |language:string| be |record|'s < a > lang</ a > if it [= map/exists =],
2877
2877
or else to |documentLanguage|.
2878
2878
</ li >
2879
- < li >
2880
- Let |encoding label:string| be |record|'s < a > encoding</ a > if it
2881
- [= map/exists =], or "`utf-8`".
2882
- </ li >
2883
- < li >
2884
- If |encoding label| is not equal to "`utf-8`", "`utf-16`",
2885
- "`utf-16le`" or "`utf-16be`" [= exception/throw =] a {{TypeError}}.
2879
+ < li > Switch on the type of |record|'s < a > data</ a > :
2880
+ < dl >
2881
+ < dt > {{DOMString}}</ dt >
2882
+ < ol >
2883
+ < li >
2884
+ Let |encoding label:string| be "`utf-8`".
2885
+ </ li >
2886
+ </ ol >
2887
+ < dt > {{BufferSource}}</ dt >
2888
+ < ol >
2889
+ < li >
2890
+ Let |encoding label:string| be |record|'s < a > encoding</ a > if
2891
+ it [= map/exists =], or else "`utf-8`".
2892
+ </ li >
2893
+ < li >
2894
+ If |encoding label| is not equal to "`utf-8`", "`utf-16`",
2895
+ "`utf-16le`" or "`utf-16be`" [= exception/throw =] a
2896
+ {{TypeError}}.
2897
+ </ li >
2898
+ </ ol >
2899
+ </ dl >
2886
2900
</ li >
2887
2901
< li >
2888
2902
Let |encoding name| be the [=encoding/name|name=]
You can’t perform that action at this time.
0 commit comments