You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If #3 is resolved and the spec’s error handling behavior can be obtained with the "normal" API, I believe that the TextDecoder and TextEncoder APIs should be removed. The reasons are:
It doesn’t seem to do anything useful that the rest of the API doesn’t already do.
The spec says "Non-browser implementations are not required to implement this API."
It is designed for JavaScript (options dicts, TypeError, …) and doesn’t translate well into Rust.
I don’t personally find it very good anyway.
Instead, the get_encoding() function should be public. It is useful anyway when dealing with multiple encoding hints. (See for example the relevant CSS spec)
The text was updated successfully, but these errors were encountered:
Hi,
If #3 is resolved and the spec’s error handling behavior can be obtained with the "normal" API, I believe that the
TextDecoder
andTextEncoder
APIs should be removed. The reasons are:Instead, the
get_encoding()
function should be public. It is useful anyway when dealing with multiple encoding hints. (See for example the relevant CSS spec)The text was updated successfully, but these errors were encountered: