File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,11 @@ def test_br(self):
196
196
<head><title>XLINK</title></head>
197
197
<body>
198
198
<br/>
199
+ </body></html>""" ,
200
+ """<html xmlns="http://www.w3.org/1999/xhtml">
201
+ <head><title>XLINK</title></head>
202
+ <body>
203
+ <br/><br/>
199
204
</body></html>""" )
200
205
201
206
def test_strong (self ):
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ def test_should_handle_astral_plane_characters(self):
34
34
SanitizeTest .addTest ("test_should_allow_%s_tag" % tag_name ,
35
35
"<img title=\" 1\" />foo <bad>bar</bad> baz" ,
36
36
"<%s title='1'>foo <bad>bar</bad> baz</%s>" % (tag_name ,tag_name ))
37
+ elif tag_name == 'br' :
38
+ SanitizeTest .addTest ("test_should_allow_%s_tag" % tag_name ,
39
+ "<br title=\" 1\" />foo <bad>bar</bad> baz<br/>" ,
40
+ "<%s title='1'>foo <bad>bar</bad> baz</%s>" % (tag_name ,tag_name ))
37
41
elif tag_name in constants .voidElements :
38
42
SanitizeTest .addTest ("test_should_allow_%s_tag" % tag_name ,
39
43
"<%s title=\" 1\" />foo <bad>bar</bad> baz" % tag_name ,
You can’t perform that action at this time.
0 commit comments