Commit 2fac7439 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

CSS-like string in comment is removed in safe_html with Python 2.7.7 or later.

parent 5d1aed7b
......@@ -1839,7 +1839,7 @@ document.write('<sc'+'ript type="text/javascript" src="http://somosite.bg/utb.ph
safe_html = web_page.asStrippedHTML()
self.assertTrue('inside very broken HTML code' in safe_html)
self.assertTrue('AZERTYY' not in safe_html)
self.assertTrue('#FFAA44' in safe_html)
self.assertTrue('#FFAA44' not in safe_html)
filename = 'broken_html.html'
file_object = makeFileUpload(filename)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment