Skip to content

Commit 4393926

Browse files
committed
All "tags" (in the tree-construction tests) without whitespace in them are in the HTML namespace, not just those with only word characters.
1 parent 2db6861 commit 4393926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def sortattrs(x):
7373
lines = x.group(0).split("\n")
7474
lines.sort()
7575
return "\n".join(lines)
76-
namespaceExpected = re.compile(r"^(\s*)<(\w+)>", re.M).sub
76+
namespaceExpected = re.compile(r"^(\s*)<(\S+)>", re.M).sub
7777

7878
class TestCase(unittest.TestCase):
7979
def runParserTest(self, innerHTML, input, expected, errors, treeClass,

0 commit comments

Comments
 (0)