diff options
Diffstat (limited to 'tests/safe_mode')
-rw-r--r-- | tests/safe_mode/inline-html-advanced.html | 14 | ||||
-rw-r--r-- | tests/safe_mode/inline-html-advanced.txt | 14 | ||||
-rw-r--r-- | tests/safe_mode/inline-html-comments.html | 14 | ||||
-rw-r--r-- | tests/safe_mode/inline-html-comments.txt | 13 | ||||
-rw-r--r-- | tests/safe_mode/inline-html-simple.html | 64 | ||||
-rw-r--r-- | tests/safe_mode/inline-html-simple.txt | 69 | ||||
-rw-r--r-- | tests/safe_mode/script_tags.html | 33 | ||||
-rw-r--r-- | tests/safe_mode/script_tags.txt | 33 |
8 files changed, 254 insertions, 0 deletions
diff --git a/tests/safe_mode/inline-html-advanced.html b/tests/safe_mode/inline-html-advanced.html new file mode 100644 index 0000000..bc59ab1 --- /dev/null +++ b/tests/safe_mode/inline-html-advanced.html @@ -0,0 +1,14 @@ +<p>Simple block on one line: +</p> +<div>foo</div> + +<p>And nested without indentation: +</p> +<div> +<div> +<div> +foo +</div> +</div> +<div>bar</div> +</div>
\ No newline at end of file diff --git a/tests/safe_mode/inline-html-advanced.txt b/tests/safe_mode/inline-html-advanced.txt new file mode 100644 index 0000000..9d71ddc --- /dev/null +++ b/tests/safe_mode/inline-html-advanced.txt @@ -0,0 +1,14 @@ +Simple block on one line: + +<div>foo</div> + +And nested without indentation: + +<div> +<div> +<div> +foo +</div> +</div> +<div>bar</div> +</div> diff --git a/tests/safe_mode/inline-html-comments.html b/tests/safe_mode/inline-html-comments.html new file mode 100644 index 0000000..8deccba --- /dev/null +++ b/tests/safe_mode/inline-html-comments.html @@ -0,0 +1,14 @@ +<p>Paragraph one. +</p> +<!-- This is a simple comment --> + +<!-- + This is another comment. +--> + +<p>Paragraph two. +</p> +<!-- one comment block -- -- with two comments --> + +<p>The end. +</p>
\ No newline at end of file diff --git a/tests/safe_mode/inline-html-comments.txt b/tests/safe_mode/inline-html-comments.txt new file mode 100644 index 0000000..41d830d --- /dev/null +++ b/tests/safe_mode/inline-html-comments.txt @@ -0,0 +1,13 @@ +Paragraph one. + +<!-- This is a simple comment --> + +<!-- + This is another comment. +--> + +Paragraph two. + +<!-- one comment block -- -- with two comments --> + +The end. diff --git a/tests/safe_mode/inline-html-simple.html b/tests/safe_mode/inline-html-simple.html new file mode 100644 index 0000000..24d16ba --- /dev/null +++ b/tests/safe_mode/inline-html-simple.html @@ -0,0 +1,64 @@ +<p>Here's a simple block: +</p> +<div> + foo +</div> + +<p>This should be a code block, though: +</p> +<pre><code><div> + foo +</div> +</code></pre><p>As should this: +</p> +<pre><code><div>foo</div> +</code></pre><p>Now, nested: +</p> +<div> + <div> + <div> + foo + </div> + </div> +</div> + +<p>This should just be an HTML comment: +</p> +<!-- Comment --> + +<p>Multiline: +</p> +<!-- +Blah +Blah +--> + +<p>Code block: +</p> +<pre><code><!-- Comment --> +</code></pre><p>Just plain comment, with trailing spaces on the line: +</p> +<!-- foo --> + +<p>Code: +</p> +<pre><code><hr /> +</code></pre><p>Hr's: +</p> +<hr> + +<hr/> + +<hr /> + +<hr> + +<hr/> + +<hr /> + +<hr class="foo" id="bar" /> + +<hr class="foo" id="bar"/> + +<hr class="foo" id="bar" >
\ No newline at end of file diff --git a/tests/safe_mode/inline-html-simple.txt b/tests/safe_mode/inline-html-simple.txt new file mode 100644 index 0000000..14aa2dc --- /dev/null +++ b/tests/safe_mode/inline-html-simple.txt @@ -0,0 +1,69 @@ +Here's a simple block: + +<div> + foo +</div> + +This should be a code block, though: + + <div> + foo + </div> + +As should this: + + <div>foo</div> + +Now, nested: + +<div> + <div> + <div> + foo + </div> + </div> +</div> + +This should just be an HTML comment: + +<!-- Comment --> + +Multiline: + +<!-- +Blah +Blah +--> + +Code block: + + <!-- Comment --> + +Just plain comment, with trailing spaces on the line: + +<!-- foo --> + +Code: + + <hr /> + +Hr's: + +<hr> + +<hr/> + +<hr /> + +<hr> + +<hr/> + +<hr /> + +<hr class="foo" id="bar" /> + +<hr class="foo" id="bar"/> + +<hr class="foo" id="bar" > + diff --git a/tests/safe_mode/script_tags.html b/tests/safe_mode/script_tags.html new file mode 100644 index 0000000..cb2abfa --- /dev/null +++ b/tests/safe_mode/script_tags.html @@ -0,0 +1,33 @@ +<p>This should be stripped/escaped in safe_mode. +</p> +<script> +alert("Hello world!") +</script> + +<p>With blank lines. +</p> +<script> + +alert("Hello world!") + +</script> + +<p>Now with some weirdness +</p> +<p><code><script <!-- +alert("Hello world!") +</script <></code>` +</p> +<p>Try another way. +</p> +<script <!-- +alert("Hello world!") +</script <> + +This time with blank lines. + +<script <!-- + +alert("Hello world!") + +</script <>
\ No newline at end of file diff --git a/tests/safe_mode/script_tags.txt b/tests/safe_mode/script_tags.txt new file mode 100644 index 0000000..55c60e9 --- /dev/null +++ b/tests/safe_mode/script_tags.txt @@ -0,0 +1,33 @@ +This should be stripped/escaped in safe_mode. + +<script> +alert("Hello world!") +</script> + +With blank lines. + +<script> + +alert("Hello world!") + +</script> + +Now with some weirdness + +``<script <!-- +alert("Hello world!") +</script <>``` + +Try another way. + +<script <!-- +alert("Hello world!") +</script <> + +This time with blank lines. + +<script <!-- + +alert("Hello world!") + +</script <> |