Skip to content

Commit 52de901

Browse files
author
James Graham
committed
Fix unnamespace regexp
--HG-- extra : transplant_source : N%CBW%08%237%D8%E4%0E%B4f%CB%B4%82%BE%F3%28%05%1A%8C
1 parent 5f3348b commit 52de901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html5lib/tests/tokenizertotree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
p = html5lib.HTMLParser()
1212

13-
unnamespaceExpected = re.compile(r"^(\s*)<html (\S+)>", re.M).sub
13+
unnamespaceExpected = re.compile(r"^(\|\s*)<html ([^>]+)>", re.M).sub
1414

1515
def main(out_path):
1616
if not os.path.exists(out_path):

0 commit comments

Comments
 (0)