Re: [whatwg/encoding] UTF-8 does not reset state when returning error (Issue #359)

ChALkeR left a comment (whatwg/encoding#359)

Also it looks like there is no impl consistent with the spec

The per-spec output in `A` is `A e 0` and in `D` is `D e 0 e 1 e 0`

"BOM seen" is set on the current decode call only if it did not error, in "serialize I/O queue" after decoding, it should not be set if an error is occured anywhere

Only engines that don't have that wrong are Chrome and Node.js, but Chrome has also errors sticking

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/encoding/issues/359#issuecomment-3782863586
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/encoding/issues/359/3782863586@github.com>

Received on Thursday, 22 January 2026 07:03:40 UTC