8000 Ruby tokenizer tests pass again · awesome-python/html5lib-python@9f7ee8f · GitHub
[go: up one dir, main page]

Skip to content

Commit 9f7ee8f

Browse files
committed
Ruby tokenizer tests pass again
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40754
1 parent 046c791 commit 9f7ee8f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

tests/test_lxp.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ def test_br(self):
196196
<head><title>XLINK</title></head>
197197
<body>
198198
<br/>
199+
</body></html>""",
200+
"""<html xmlns="http://www.w3.org/1999/xhtml">
201+
<head><title>XLINK</title></head>
202+
<body>
203+
<br/><br/>
199204
</body></html>""")
200205

201206
def test_strong(self):

tests/test_sanitizer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ def test_should_handle_astral_plane_characters(self):
3434
SanitizeTest.addTest("test_should_allow_%s_tag" % tag_name,
3535
"<img title=\"1\"/>foo &lt;bad&gt;bar&lt;/bad&gt; baz",
3636
"<%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 &lt;bad&gt;bar&lt;/bad&gt; baz<br/>",
40+
"<%s title='1'>foo <bad>bar</bad> baz</%s>" % (tag_name,tag_name))
3741
elif tag_name in constants.voidElements:
3842
SanitizeTest.addTest("test_should_allow_%s_tag" % tag_name,
3943
"<%s title=\"1\"/>foo &lt;bad&gt;bar&lt;/bad&gt; baz" % tag_name,

0 commit comments

Comments
 (0)
0