[Webkit-unassigned] [Bug 68618] New: btoa() and atob() should stringify null to "null", not ""

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 22 07:16:02 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=68618

           Summary: btoa() and atob() should stringify null to "null", not
                    ""
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Minor
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ayg at aryeh.name


Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=688443

Spec:

http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#atob

It doesn't have [TreatNullAs=EmptyString], so it should be treated as "null".  No one does this currently for btoa() or atob() -- Firefox 8.0a2, Chrome 15 dev, and Opera 11.50 stringify to "".  (IE doesn't support the functions.)  But it seems like consensus is that browsers should change here, not the spec:

http://krijnhoetmer.nl/irc-logs/whatwg/20110922#l-230 (first two lines)
http://krijnhoetmer.nl/irc-logs/whatwg/20110922#l-554 (continuation)

zcorpan reports Opera has already changed, and Ms2ger says Gecko should change too.  I'll update my base64 tests at the W3C to test for this.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list