Skip to content

Commit

Permalink
[giow] (3) Change atob() to ignore whitespace. This is a potentially …
Browse files Browse the repository at this point in the history
…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 3e7af92
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
9 changes: 7 additions & 2 deletions complete.html
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
9 changes: 7 additions & 2 deletions index
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
7 changes: 7 additions & 0 deletions source
Expand Up @@ -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
Expand Down

0 comments on commit 3e7af92

Please sign in to comment.