summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xhtdocs/favelets.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/htdocs/favelets.html b/htdocs/favelets.html
index caf3865..6b7a187 100755
--- a/htdocs/favelets.html
+++ b/htdocs/favelets.html
@@ -47,28 +47,28 @@
</div>
<div>
<dl>
- <dt>"<a href="javascript:void(window.location='http://validator.w3.org/check?uri='+escape(window.location))"
+ <dt>"<a href="javascript:void(window.location='http://validator.w3.org/check?uri='+encodeURIComponent(window.location))"
title="Validate This Page">Validate <em>This</em> Page</a>"</dt>
<dd>
This is the basic "Validate This Page" <a href="http://favelets.com/">Favelet</a>.
It simply submits the URL for the currently viewed page to the
Validator for processing. Results appear in the same window.
</dd>
- <dt>"<a href="javascript:window.open('http://validator.w3.org/check?uri='+escape(window.location));void%200"
+ <dt>"<a href="javascript:window.open('http://validator.w3.org/check?uri='+encodeURIComponent(window.location));void%200"
title="Validate This Page In New Window">Validate <em>This</em> Page In New Window</a>"</dt>
<dd>
Like the last <a href="http://favelets.com/">Favelet</a>, this also
submits the URL of the current page to the Validator for processing,
but this version will show the results in a new window.
</dd>
- <dt>"<a href="javascript:void(q=prompt('Validate%20Page:',''));if(q)void(window.location='http://validator.w3.org/check?uri='+escape(q))"
+ <dt>"<a href="javascript:void(q=prompt('Validate%20Page:',''));if(q)void(window.location='http://validator.w3.org/check?uri='+encodeURIComponent(q))"
title="Validate Page...">Validate Page...</a>"</dt>
<dd>
Puts up a dialog with a text entry field where you can type in the
URL of a page you would like to Validate. The results appear in the
current window.
</dd>
- <dt>"<a href="javascript:void(q=prompt('Validate%20Page:',''));if(q)window.open('http://validator.w3.org/check?uri='+escape(q));void%200"
+ <dt>"<a href="javascript:void(q=prompt('Validate%20Page:',''));if(q)window.open('http://validator.w3.org/check?uri='+encodeURIComponent(q));void%200"
title="Validate Page In New Window...">Validate Page In New Window...</a>"</dt>
<dd>Same as above but shows results in a new window.</dd>
</dl>