git.iko.soy/typeable/html-parse
on master help sign in
update nonClosing to contain complete list of void elements.
commit1402a600c621090e33a9cb6027a98c0ecac867ad authorJeremy Shaw <jeremy@n-heptane.com> dateThu 30 Jul 2020, 10:11 (6 years ago) parent555ddc7
1 file changed+1−1
Text/HTML/Tree.hs+1−1
Text/HTML/Tree.hs+1−1
@@ -34,7 +34,7 @@ tokensToForest = f (PStack [] [])
3434 Doctype _ -> f (pushFlatSibling t pstack) ts
3535
3636nonClosing :: [Text]
37−nonClosing = ["br", "hr", "img"]
37+nonClosing = ["br", "hr", "img", "meta", "area", "base", "col", "command", "embed", "input", "keygen", "link", "param", "source", "track", "wbr"]
3838
3939data ParseTokenForestError =
4040 ParseTokenForestErrorBracketMismatch PStack (Maybe Token)