diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/writer.html | 14 | ||||
-rw-r--r-- | tests/writer.smart.html | 14 |
2 files changed, 24 insertions, 4 deletions
diff --git a/tests/writer.html b/tests/writer.html index 0661fb732..2d067c8d5 100644 --- a/tests/writer.html +++ b/tests/writer.html @@ -415,7 +415,12 @@ Cat & 1 \\ \hline <p><a href="/url/" title="title preceded by a tab">URL and title</a>.</p> <p><a href="/url/" title="title with "quotes" in it">URL and title</a></p> <p><a href="/url/" title="title with single quotes">URL and title</a></p> -<p><script type="text/javascript">h='nowhere.net';n='nobody';e=n+'@'+h;document.write('<a href="mailto:'+e+'">'+'Email link'+'<\/a>');</script><noscript>Email link (nobody [at] nowhere.net)</noscript></p> +<p><script type="text/javascript"> +<!-- +h='nowhere.net';a='@';n='nobody';e=n+a+h; +document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+'Email link'+'<\/'+'a'+'>'); +// --> +</script><noscript>Email link (nobody at nowhere dot net)</noscript></p> <p><a href="">Empty</a>.</p> <a id="Reference"></a> <h2>Reference</h2> @@ -446,7 +451,12 @@ Cat & 1 \\ \hline <li><a href="http://example.com/">http://example.com/</a></li> <li>It should.</li> </ul> -<p>An e-mail address: <script type="text/javascript">h='nowhere.net';n='nobody';e=n+'@'+h;document.write('<a href="mailto:'+e+'">'+e+'<\/a>');</script><noscript>nobody [at] nowhere.net</noscript></p> +<p>An e-mail address: <script type="text/javascript"> +<!-- +h='nowhere.net';a='@';n='nobody';e=n+a+h; +document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+e+'<\/'+'a'+'>'); +// --> +</script><noscript>nobody at nowhere dot net</noscript></p> <blockquote> <p>Blockquoted: <a href="http://example.com/">http://example.com/</a></p> </blockquote> diff --git a/tests/writer.smart.html b/tests/writer.smart.html index d5fb3da93..0ea82cfdd 100644 --- a/tests/writer.smart.html +++ b/tests/writer.smart.html @@ -415,7 +415,12 @@ Cat & 1 \\ \hline <p><a href="/url/" title="title preceded by a tab">URL and title</a>.</p> <p><a href="/url/" title="title with "quotes" in it">URL and title</a></p> <p><a href="/url/" title="title with single quotes">URL and title</a></p> -<p><script type="text/javascript">h='nowhere.net';n='nobody';e=n+'@'+h;document.write('<a href="mailto:'+e+'">'+'Email link'+'<\/a>');</script><noscript>Email link (nobody [at] nowhere.net)</noscript></p> +<p><script type="text/javascript"> +<!-- +h='nowhere.net';a='@';n='nobody';e=n+a+h; +document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+'Email link'+'<\/'+'a'+'>'); +// --> +</script><noscript>Email link (nobody at nowhere dot net)</noscript></p> <p><a href="">Empty</a>.</p> <a id="Reference"></a> <h2>Reference</h2> @@ -446,7 +451,12 @@ Cat & 1 \\ \hline <li><a href="http://example.com/">http://example.com/</a></li> <li>It should.</li> </ul> -<p>An e-mail address: <script type="text/javascript">h='nowhere.net';n='nobody';e=n+'@'+h;document.write('<a href="mailto:'+e+'">'+e+'<\/a>');</script><noscript>nobody [at] nowhere.net</noscript></p> +<p>An e-mail address: <script type="text/javascript"> +<!-- +h='nowhere.net';a='@';n='nobody';e=n+a+h; +document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+e+'<\/'+'a'+'>'); +// --> +</script><noscript>nobody at nowhere dot net</noscript></p> <blockquote> <p>Blockquoted: <a href="http://example.com/">http://example.com/</a></p> </blockquote> |