Revert "HTML reader: td or th implicitly closes blocks within last td/th."

This reverts commit d2c4243f89.
This commit is contained in:
John MacFarlane
2017-10-24 14:32:51 -07:00
parent d2c4243f89
commit ad2df0655e
+1 -5
View File
@@ -1036,11 +1036,7 @@ _ `closes` "html" = False
"body" `closes` "head" = True
"a" `closes` "a" = True
"li" `closes` "li" = True
t1 `closes` t2
| t1 `elem` ["th","td"] &&
t2 `Set.member` blockTags &&
t2 /= "tr" &&
t2 /= "table" = True
"th" `closes` t | t `elem` ["th","td"] = True
"tr" `closes` t | t `elem` ["th","td","tr"] = True
"dd" `closes` t | t `elem` ["dt", "dd"] = True
"dt" `closes` t | t `elem` ["dt","dd"] = True