This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26255 - Remove decode() overload
Summary: Remove decode() overload
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: Encoding (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: Unsorted
Assignee: Anne
QA Contact: sideshowbarker+encodingspec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-02 21:32 UTC by Joshua Bell
Modified: 2014-07-03 13:19 UTC (History)
3 users (show)

See Also:


Attachments

Description Joshua Bell 2014-07-02 21:32:50 UTC
TextDecoder IDL has:

  DOMString decode();
  DOMString decode(ArrayBufferView input, optional TextDecodeOptions options);

ISTM this could be written as:

  DOMString decode(optional ArrayBufferView input, optional TextDecodeOptions options);

... which matches the description in the Note anyway.
Comment 1 Anne 2014-07-03 05:47:11 UTC
Ah yeah, I think we could not do this because dictionaries screwed that up, but that is probably fixed now.
Comment 2 Boris Zbarsky 2014-07-03 13:10:05 UTC
I don't see how dictionaries would have screwed this up.  Having both arguments optional should work.
Comment 3 Anne 2014-07-03 13:19:04 UTC
Originally optional dictionary meant that the argument before could not be optional. We fixed that, but I never updated this.

https://github.com/whatwg/encoding/commit/6e531368f1a34755f5ba067e53f4d8b194e37bf1