Skip to content

Commit

Permalink
Update spec URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Oct 3, 2014
1 parent 88a15fb commit 39815d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions ampersands/eff.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}

/*
// Go to http://www.whatwg.org/specs/web-apps/current-work/multipage/named-character-references.html and run this in your console:
// Go to https://html.spec.whatwg.org/multipage/named-character-references.html and run this in your console:
var charRefs = {},
noSemi = [];
[].forEach.call(document.querySelectorAll('td code'), function(element) {
Expand All @@ -51,7 +51,7 @@
regexNoSemi = /(&(?:iacute|Aacute|Uacute|plusmn|otilde|Otilde|Agrave|agrave|yacute|Yacute|oslash|Oslash|Atilde|atilde|brvbar|Ccedil|ccedil|ograve|curren|divide|Eacute|eacute|Ograve|oacute|Egrave|egrave|ugrave|frac12|frac14|frac34|Ugrave|Oacute|Iacute|ntilde|Ntilde|uacute|middot|Igrave|igrave|iquest|aacute|cedil|laquo|micro|iexcl|icirc|Icirc|Acirc|ucirc|ecirc|Ocirc|ocirc|Ecirc|Ucirc|aring|Aring|aelig|AElig|acute|pound|raquo|acirc|times|thorn|szlig|THORN|copy|Auml|ordf|ordm|uuml|macr|Uuml|auml|Ouml|ouml|para|nbsp|Euml|QUOT|quot|euml|yuml|cent|sect|COPY|sup1|sup2|sup3|Iuml|iuml|eth|shy|REG|not|yen|AMP|amp|reg|uml|ETH|deg|GT|gt|lt|LT))[^;]?/g;

/*
// Go to http://www.whatwg.org/specs/web-apps/current-work/multipage/named-character-references.html and run this in your console:
// Go to https://html.spec.whatwg.org/multipage/named-character-references.html and run this in your console:
var charRefs = [],
noSemi = [],
charRefsThatHaveASemiFreeCharRefAsSubstring;
Expand All @@ -77,7 +77,7 @@
regexCharacterReferencesThatHaveASemicolonFreeCharacterReferenceAsSubstring = /&(?:Aacute|aacute|Acirc|acirc|acute|AElig|aelig|Agrave|agrave|AMP|amp|Aring|aring|Atilde|atilde|Auml|auml|brvbar|Ccedil|ccedil|cedil|cent|centerdot|COPY|copy|copysr|curren|deg|divide|divideontimes|Eacute|eacute|Ecirc|ecirc|Egrave|egrave|ETH|eth|Euml|euml|frac12|frac14|frac34|GT|gt|gtcc|gtcir|gtdot|gtlPar|gtquest|gtrapprox|gtrarr|gtrdot|gtreqless|gtreqqless|gtrless|gtrsim|Iacute|iacute|Icirc|icirc|iexcl|Igrave|igrave|iquest|Iuml|iuml|laquo|LT|lt|ltcc|ltcir|ltdot|lthree|ltimes|ltlarr|ltquest|ltri|ltrie|ltrif|ltrPar|macr|micro|middot|nbsp|not|notin|notindot|notinE|notinva|notinvb|notinvc|notni|notniva|notnivb|notnivc|Ntilde|ntilde|Oacute|oacute|Ocirc|ocirc|Ograve|ograve|ordf|ordm|Oslash|oslash|Otilde|otilde|Ouml|ouml|para|parallel|plusmn|pound|QUOT|quot|raquo|REG|reg|sect|shy|sup1|sup2|sup3|szlig|THORN|thorn|times|timesb|timesbar|timesd|Uacute|uacute|Ucirc|ucirc|Ugrave|ugrave|uml|Uuml|uuml|Yacute|yacute|yen|yuml);/g;

/*
// Go to http://www.whatwg.org/specs/web-apps/current-work/multipage/named-character-references.html and run this in your console:
// Go to https://html.spec.whatwg.org/multipage/named-character-references.html and run this in your console:
var charRefs = {},
noSemi = [];
[].forEach.call(document.querySelectorAll('td code'), function(element) {
Expand Down
2 changes: 1 addition & 1 deletion base64/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name=description content="An on-the-fly Base64 encoder/decoder.">
<h1>Base64 encoder/decoder</h1>
<noscript><strong>To use this tool, please <a href=http://enable-javascript.com/>enable JavaScript</a> and reload the page.</strong></noscript>
<p>Did you know that <a href=http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#atob>the global <code>btoa</code> and <code>atob</code> methods in browsers</a> only support extended ASCII characters? For example, <code>btoa('foo ♥ bar')</code> throws an error. A proper Base64 encoder encodes strings as UTF-8 first, and then encodes the resulting byte sequence as Base64. When decoding, Base64 decoding is performed first, followed by UTF-8 decoding.
<p>Did you know that <a href=https://html.spec.whatwg.org/multipage/webappapis.html#atob>the global <code>btoa</code> and <code>atob</code> methods in browsers</a> only support extended ASCII characters? For example, <code>btoa('foo ♥ bar')</code> throws an error. A proper Base64 encoder encodes strings as UTF-8 first, and then encodes the resulting byte sequence as Base64. When decoding, Base64 decoding is performed first, followed by UTF-8 decoding.
<h2>Unicode (<a href=#foo%20%E2%99%A5%20bar id=permalink>permalink</a>)</h2>
<textarea autofocus>foo ♥ bar</textarea>
<h2>base64</h2>
Expand Down
2 changes: 1 addition & 1 deletion bgcolor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel=stylesheet href=eff.css>
<meta name=description content="Wondering what a given legacy HTML color value looks like? This tool will show you.">
<h1>Legacy HTML color value previewer</h1>
<p>Wondering what a given legacy HTML color value (as seen in <code>bgcolor</code>, <code>text</code>, <code>link</code>, <code>vlink</code>, and <code>alink</code> attribute values) looks like? <a href=http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#rules-for-parsing-a-legacy-colour-value>Read the spec</a>, or just use this tool.</p>
<p>Wondering what a given legacy HTML color value (as seen in <code>bgcolor</code>, <code>text</code>, <code>link</code>, <code>vlink</code>, and <code>alink</code> attribute values) looks like? <a href=https://html.spec.whatwg.org/multipage/infrastructure.html#rules-for-parsing-a-legacy-colour-value>Read the spec</a>, or just use this tool.</p>
<noscript><strong>To use this tool, please <a href=http://enable-javascript.com/>enable JavaScript</a> and reload the page.</strong></noscript>
<pre><code><span class=sc2>&lt;<span class=element>body</span> <span class=attribute>bgcolor</span><span class=symbol>=</span><span class=quote><b>"</b><div contenteditable id=input>chucknorris</div><b>"</b></span>><a href=#chucknorris id=permalink>permalink</a>, <a href="data:text/html;charset=utf-8,<body bgcolor=chucknorris>" id=example>example</a>&lt;<span class=symbol>/</span><span class=element>body</span>></code></pre>
<iframe id=result srcdoc="<body bgcolor=&quot;chucknorris&quot;>"></iframe>
Expand Down

0 comments on commit 39815d3

Please sign in to comment.