Skip to content

Commit 94224e1

Browse files
committed
not sure why I had to change this test yesterday to make it work, but it works fine again today.
1 parent 5fef033 commit 94224e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_textile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ def test_sanitize():
7171
expect = textile.Textile().parse(test, sanitize=True)
7272
assert result == expect
7373

74-
test = """<p onclick="alert('evil');">a paragraph of evil text</p>"""
75-
result = '<p>a paragraph of evil text</p>'
74+
test = """<p style="width: expression(alert('evil'));">a paragraph of evil text</p>"""
75+
result = '<p style="">a paragraph of evil text</p>'
7676
expect = textile.Textile().parse(test, sanitize=True)
7777
assert result == expect
7878

0 commit comments

Comments
 (0)