More Tests
Enable unit tests for the HTML5lib Sanitizer (used in the <nowiki> environment).
This commit is contained in:
parent
52c1f74ecc
commit
94476d9865
2 changed files with 156 additions and 5 deletions
|
@ -1,9 +1,9 @@
|
|||
[
|
||||
{
|
||||
"name": "IE_Comments",
|
||||
"input": "<!--[if gte IE 4]><script>alert('XSS');</script><![endif]-->",
|
||||
"output": "",
|
||||
"xhtml": "<!--[if gte IE 4]><script>alert('XSS');</script><![endif]-->"
|
||||
"input": "<!--[if gte IE 4]><script>alert('XSS');</script><![endif]-->a",
|
||||
"output": "a",
|
||||
"xhtml": "<!--[if gte IE 4]><script>alert('XSS');</script><![endif]-->a"
|
||||
},
|
||||
|
||||
{
|
||||
|
@ -211,7 +211,8 @@
|
|||
{
|
||||
"name": "should_handle_blank_text",
|
||||
"input": "",
|
||||
"output": ""
|
||||
"output": "<div xmlns='http://www.w3.org/1999/xhtml'/>",
|
||||
"xhtml": ""
|
||||
},
|
||||
|
||||
{
|
||||
|
@ -503,7 +504,8 @@
|
|||
{
|
||||
"name": "attributes_with_embedded_quotes",
|
||||
"input": "<img src=doesntexist.jpg\"'onerror=\"alert(1) />",
|
||||
"output": "<img src='doesntexist.jpg"'onerror="alert(1)'/>",
|
||||
"output": "<img src='doesntexist.jpg"'onerror="alert(1)'/>",
|
||||
"xhtml": "<img src='doesntexist.jpg"'onerror="alert(1)'/>",
|
||||
"rexml": "Ill-formed XHTML!"
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue