Skip to content
Permalink
Browse files

[giow] (3) Change atob() to ignore whitespace. This is a potentially …

…breaking change, but Opera has implemented it for a while and doesn't seem to have had any problems resulting.

Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@6874 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Dec 15, 2011
1 parent a709c6d commit 3e7af929255bd3b7f04f5ebe40ce5fe4d73521c9
Showing with 21 additions and 4 deletions.
  1. +7 −2 complete.html
  2. +7 −2 index
  3. +7 −0 source
@@ -240,7 +240,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 14 December 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 15 December 2011</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
@@ -68497,12 +68497,17 @@ <h3 id=atob><span class=secno>7.2 </span>Base64 utility methods</h3>
(4.0b8). WebKit is somewhat laxer, and Opera throws no exceptions
at all. gsnedders reports Opera's behavior causes site-compat
problems, and I figure most sites depend on Firefox if on anything,
so go with that. --><li><p>Let <var title="">input</var> be the string being
so go with that. --><!-- Since updated to drop whitespace, based on the arguments here:
http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2011-May/031613.html
--><li><p>Let <var title="">input</var> be the string being
parsed.</li>

<li><p>Let <var title="">position</var> be a pointer into <var title="">input</var>, initially pointing at the start of the
string.</li>

<li><p>Remove all <a href=#space-character title="space character">space
characters</a> from <var title="">input</var>.</li>

<li><p>If the length of <var title="">input</var> divides by 4
leaving no remainder, then: if <var title="">input</var> ends with
one or two U+003D EQUALS SIGN (=) characters, remove them from <var title="">input</var>.</li>
9 index
@@ -240,7 +240,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 14 December 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 15 December 2011</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
@@ -68497,12 +68497,17 @@ interface <dfn id=windowbase64>WindowBase64</dfn> {
(4.0b8). WebKit is somewhat laxer, and Opera throws no exceptions
at all. gsnedders reports Opera's behavior causes site-compat
problems, and I figure most sites depend on Firefox if on anything,
so go with that. --><li><p>Let <var title="">input</var> be the string being
so go with that. --><!-- Since updated to drop whitespace, based on the arguments here:
http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2011-May/031613.html
--><li><p>Let <var title="">input</var> be the string being
parsed.</li>

<li><p>Let <var title="">position</var> be a pointer into <var title="">input</var>, initially pointing at the start of the
string.</li>

<li><p>Remove all <a href=#space-character title="space character">space
characters</a> from <var title="">input</var>.</li>

<li><p>If the length of <var title="">input</var> divides by 4
leaving no remainder, then: if <var title="">input</var> ends with
one or two U+003D EQUALS SIGN (=) characters, remove them from <var title="">input</var>.</li>
7 source
@@ -80124,13 +80124,20 @@ interface <dfn>WindowBase64</dfn> {
problems, and I figure most sites depend on Firefox if on anything,
so go with that. -->

<!-- Since updated to drop whitespace, based on the arguments here:
http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2011-May/031613.html
-->

<li><p>Let <var title="">input</var> be the string being
parsed.</p></li>

<li><p>Let <var title="">position</var> be a pointer into <var
title="">input</var>, initially pointing at the start of the
string.</p></li>

<li><p>Remove all <span title="space character">space
characters</span> from <var title="">input</var>.</p></li>

<li><p>If the length of <var title="">input</var> divides by 4
leaving no remainder, then: if <var title="">input</var> ends with
one or two U+003D EQUALS SIGN (=) characters, remove them from <var

0 comments on commit 3e7af92

Please sign in to comment.
You can’t perform that action at this time.