This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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 'stream' option has any meaningful behavior for encode(). Am I missing something?
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's no real harm, right?
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.)
https://github.com/whatwg/encoding/commit/f3af63ae02898a3ecb85b6c300a8b8b06acfc30c