ISSUE-445: Consider changing the exceptions

Consider changing the exceptions

State:
CLOSED
Product:
encoding
Raised by:
Richard Ishida
Opened on:
2015-03-30
Description:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27248

This issue tracks the bug listed above and was created as part of the WG CR process.

---

Reporter: d@domenic.me


https://encoding.spec.whatwg.org/#interface-textencoder

[[
throws a TypeError.
]]

In general RangeErrors are better used when only an enumeration should be
allowed and you want to throw when outside that range. See e.g.
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.normalize
Related Actions Items:
No related actions
Related emails:
  1. I18N-ISSUE-445 (BUG27248): "throws a TypeError. " [encoding] (from sysbot+tracker@w3.org on 2015-03-30)

Related notes:

Bug marked RESOLVED and FIXED.

Richard Ishida, 30 Mar 2015, 14:14:40

These issues are now tracked at http://www.w3.org/International/docs/encoding/encoding-cr-doc

Richard Ishida, 16 Sep 2015, 11:52:31

Display change log ATOM feed


Addison Phillips <addisonI18N@gmail.com>, Chair, Richard Ishida <ishida@w3.org>, Bert Bos <bert@w3.org>, Fuqiao Xue <xfq@w3.org>, Atsushi Shimono <atsushi@w3.org>, Staff Contacts
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 445.html,v 1.1 2023/07/19 12:02:04 carcone Exp $