Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new failing unit test #35

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 14 additions & 2 deletions test/assets/testdata_sanitizer_tests1.dat
Expand Up @@ -151,8 +151,20 @@

{
"name": "platypus",
"input": "<a href=\"http://www.ragingplatypus.com/\" style=\"display:block; position:absolute; left:0; top:0; width:100%; height:100%; z-index:1; background-color:black; background-image:url(http://www.ragingplatypus.com/i/cam-full.jpg); background-x:center; background-y:center; background-repeat:repeat;\">never trust your upstream platypus</a>",
"output": "<a href='http://www.ragingplatypus.com/' style='display: block; width: 100%; height: 100%; background-color: black; background-repeat: repeat;'>never trust your upstream platypus</a>"
"input": "<a href=\"http://www.ragingplatypus.com/\" style=\"display:block; position:absolute; left:0; top:0; width:100%; height:100%; z-index:1; background-color:black; background-image:url(http://www.ragingplatypus.com/i/cam-full.jpg); background-x:center; background-y:center; background-incorrect-attribute:something fishy and weird; background-repeat:repeat;\">never trust your upstream platypus</a>",
"output": "<a href='http://www.ragingplatypus.com/' style='display: block; width: 100%; height: 100%; background-color: black; background-x: center; background-y: center;'>never trust your upstream platypus</a>"
},

{
"name": "border_styling_color_case_insensitivity",
"input": "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" style=\"border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0; height: auto\"></table>",
"output": "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" style=\"border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0; height: auto;\"></table>"
},

{
"name": "allow_styles_containing_vendor_prefixes",
"input": "<table cellspacing=\"0\" align=\"center\" style=\"border-top-color: #eaeae3; border-top-style: solid; border-top-width: 1px; -webkit-text-size-adjust: none;\" width=\"100%\" cellpadding=\"0\"></table>",
"output": "<table cellspacing='0' align='center' style='border-top-color: #eaeae3; border-top-style: solid; border-top-width: 1px;' width='100%' cellpadding='0'></table>"
},

{
Expand Down