diff options
Diffstat (limited to 'tests/misc')
-rw-r--r-- | tests/misc/brackets-in-img-title.html | 9 | ||||
-rw-r--r-- | tests/misc/brackets-in-img-title.txt | 12 | ||||
-rw-r--r-- | tests/misc/escaped_chars_in_js.html | 12 | ||||
-rw-r--r-- | tests/misc/escaped_chars_in_js.txt | 12 | ||||
-rw-r--r-- | tests/misc/url_spaces.html | 4 |
5 files changed, 47 insertions, 2 deletions
diff --git a/tests/misc/brackets-in-img-title.html b/tests/misc/brackets-in-img-title.html new file mode 100644 index 0000000..3677139 --- /dev/null +++ b/tests/misc/brackets-in-img-title.html @@ -0,0 +1,9 @@ +<p><img alt="alt" src="local-img.jpg" /> +<img alt="alt" src="local-img.jpg" title="" /> +<img alt="alt" src="local-img.jpg" title="normal title" /></p> +<p><img alt="alt" src="local-img.jpg" title="(just title in brackets)" /> +<img alt="alt" src="local-img.jpg" title="title with brackets (I think)" /></p> +<p><img alt="alt" src="local-img.jpg" title="(" /> +<img alt="alt" src="local-img.jpg" title="(open only" /> +<img alt="alt" src="local-img.jpg" title=")" /> +<img alt="alt" src="local-img.jpg" title="close only)" /></p>
\ No newline at end of file diff --git a/tests/misc/brackets-in-img-title.txt b/tests/misc/brackets-in-img-title.txt new file mode 100644 index 0000000..01fcd4e --- /dev/null +++ b/tests/misc/brackets-in-img-title.txt @@ -0,0 +1,12 @@ +![alt](local-img.jpg) +![alt](local-img.jpg "") +![alt](local-img.jpg "normal title") + +![alt](local-img.jpg "(just title in brackets)") +![alt](local-img.jpg "title with brackets (I think)") + +![alt](local-img.jpg "(") +![alt](local-img.jpg "(open only") +![alt](local-img.jpg ")") +![alt](local-img.jpg "close only)") + diff --git a/tests/misc/escaped_chars_in_js.html b/tests/misc/escaped_chars_in_js.html new file mode 100644 index 0000000..b821fb1 --- /dev/null +++ b/tests/misc/escaped_chars_in_js.html @@ -0,0 +1,12 @@ +<p><span id="e116142240">[javascript protected email address]</span> +<script type="text/javascript"> + var a="gqMjyw7lZCaKk6p0J3uAUYS1.dbIW2hXzDHmiVNotOPRe_Ev@c4Gs58+LBr-F9QTfxn"; + var b=a.split("").sort().join(""); + var c="F_-F6F_-FMe_"; + var d=""; + for(var e=0;e<c.length;e++) + d+=b.charAt(a.indexOf(c.charAt(e))); + document + .getElementById("e116142240") + .innerHTML="<a href=\"mailto:"+d+"\">"+d+"</a>"; +</script></p>
\ No newline at end of file diff --git a/tests/misc/escaped_chars_in_js.txt b/tests/misc/escaped_chars_in_js.txt new file mode 100644 index 0000000..ca917c8 --- /dev/null +++ b/tests/misc/escaped_chars_in_js.txt @@ -0,0 +1,12 @@ +<span id="e116142240">[javascript protected email address]</span> +<script type="text/javascript"> + var a="gqMjyw7lZCaKk6p0J3uAUYS1.dbIW2hXzDHmiVNotOPRe_Ev@c4Gs58+LBr-F9QTfxn"; + var b=a.split("").sort().join(""); + var c="F_-F6F_-FMe_"; + var d=""; + for(var e=0;e<c.length;e++) + d+=b.charAt(a.indexOf(c.charAt(e))); + document + .getElementById("e116142240") + .innerHTML="<a href=\"mailto:"+d+"\">"+d+"</a>"; +</script> diff --git a/tests/misc/url_spaces.html b/tests/misc/url_spaces.html index f9c91b3..ebacb75 100644 --- a/tests/misc/url_spaces.html +++ b/tests/misc/url_spaces.html @@ -1,2 +1,2 @@ -<p><a href="http://wikipedia.org/wiki/Dawn%20of%20War">Dawn of War</a></p> -<p><a href="http://wikipedia.org/wiki/Dawn%20of%20War" title="Dawn of War">Dawn of War</a></p>
\ No newline at end of file +<p><a href="http://wikipedia.org/wiki/Dawn of War">Dawn of War</a></p> +<p><a href="http://wikipedia.org/wiki/Dawn of War" title="Dawn of War">Dawn of War</a></p>
\ No newline at end of file |