<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>26256</bug_id>
          
          <creation_ts>2014-07-02 22:21:51 +0000</creation_ts>
          <short_desc>API: TextEncoder encode()&apos;s &apos;stream&apos; option appears useless</short_desc>
          <delta_ts>2014-07-11 09:08:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>Encoding</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Bell">jsbell</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>hsivonen</cc>
    
    <cc>jshin</cc>
    
    <cc>mike</cc>
    
    <cc>www-international</cc>
          
          <qa_contact>sideshowbarker+encodingspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>108664</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2014-07-02 22:21:51 +0000</bug_when>
    <thetext>Given that:

(a) the input to encode() is defined as a ScalarValueString (i.e. no incomplete surrogate pairs), and 

(b) encode() only supports UTF-8/UTF-16, which do not maintain any encoder state across input tokens

...then it does not appear that the &apos;stream&apos; option has any meaningful behavior for encode().

Am I missing something?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108673</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-07-03 05:39:09 +0000</bug_when>
    <thetext>I was thinking http://encoding.spec.whatwg.org/#big5 but it seems only the decoder can emit two code points. I think you might be correct, yes.

I guess if we drop it there&apos;s no real harm, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108760</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2014-07-07 16:45:33 +0000</bug_when>
    <thetext>CC: henri, jshin

Unless someone sees how we can write a test for it, we should probably drop it.

(As background: this made sense when we had stateful encodings - i.e. non-UTF encodings, or when the input was not a ScalarValueString and UTF-16 code units could be split across DOMStrings.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108854</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-07-11 09:08:26 +0000</bug_when>
    <thetext>https://github.com/whatwg/encoding/commit/f3af63ae02898a3ecb85b6c300a8b8b06acfc30c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>