diff options
author | Ville Skytt? <ville.skytta@iki.fi> | 2011-05-21 11:52:05 +0300 |
---|---|---|
committer | Ville Skytt? <ville.skytta@iki.fi> | 2011-05-21 11:52:05 +0300 |
commit | 8604f086680ff40615e5c448e8208fac41f52d04 (patch) | |
tree | 515de03ac9ab29dabf0522b7b2c18df8bd8dd686 /htdocs/dev | |
parent | 63bebaba57ddd527da28dff1dbb58035367082a9 (diff) | |
download | markup-validator-8604f086680ff40615e5c448e8208fac41f52d04.zip markup-validator-8604f086680ff40615e5c448e8208fac41f52d04.tar.gz markup-validator-8604f086680ff40615e5c448e8208fac41f52d04.tar.bz2 |
Add onclick handler to badge sample code to avoid uri=referer redirects.
In addition to avoiding the redirect, this removes the need for
presence of the Referer header in JavaScript enabled browsers thus
making things work in setups that don't send the referer at all, and
when the badge is in https docs and the validator isn't.
Diffstat (limited to 'htdocs/dev')
-rwxr-xr-x | htdocs/dev/tests/html40-strict.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/htdocs/dev/tests/html40-strict.html b/htdocs/dev/tests/html40-strict.html index b5434ae..aa0695d 100755 --- a/htdocs/dev/tests/html40-strict.html +++ b/htdocs/dev/tests/html40-strict.html @@ -19,7 +19,7 @@ See: <a href="./">W3C Markup Validation Service: Tests</a> <hr> <address> - <a href="http://validator.w3.org/check?uri=referer">valid HTML</a><br> + <a href="http://validator.w3.org/check?uri=referer" onclick="this.href=this.href.replace(/referer$/,encodeURIComponent(document.URL))">valid HTML</a><br> <a href="../../feedback.html">Gerald Oskoboiny</A> </address> |