This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Decoder and encoder should have an "error handling mode" and "error" algorithm. For encoder "error" should take a code point as argument. "error" switches on "error handling mode" and either causes termination of the encoder/decoder or returns U+FFFD/a byte sequence based on the code point argument.
https://github.com/whatwg/encoding/commit/b780b76241ac09c13dd205b8a201d83fd6e1ff77
*** Bug 19982 has been marked as a duplicate of this bug. ***
*** Bug 19940 has been marked as a duplicate of this bug. ***