HenrikJoreteg/html-parse-stringify — pull request #4 by floridoo (2014-12-17 12:43:50+00:00)
Title: Make HTML5 void elements self closing

Not sure if this is a direction you don't want to go with the library, but this small change would make valid HTML5 parsable without changes.
According to the spec void elements (http://www.w3.org/TR/2011/WD-html-markup-20110113/syntax.html#void-element) can never have content and are the only ones which can be self closing.