[whatwg] Specs for window.atob() and window.btoa()

Ian Hickson ian at hixie.ch
Tue Feb 1 00:34:22 PST 2011


On Wed, 25 Aug 2010, Boris Zbarsky wrote:
> On 8/25/10 9:37 PM, Boris Zbarsky wrote:
> > Note that this issue means that using atob or btoa for dealing with 
> > this is a huge pain if non-ASCII chars are involved, since those take 
> > and return byte arrays masquerading as JS strings, not actual Unicode 
> > strings.
> 
> Of course I can't find any actual spec for atob/btoa.  I would think it 
> needs to be part of the Window spec, no?

On Thu, 6 Jan 2011, Aryeh Gregor wrote:
>
> I've written a provisional spec for window.atob() and window.btoa():
> 
> http://aryeh.name/spec/base64.html
> 
> These are functions supported by all browsers except IE, which do base64 
> encoding and decoding.

Awesome. I've updated the spec accordingly.


> I also wrote a fairly complete test suite, at:
> http://dvcs.w3.org/hg/html/raw-file/tip/tests/submission/AryehGregor/base64.html

Cool.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list