Support for HOCR input is now based on the JSoup HTML parser. The previous version, based on org.w3c.dom.Document,  worked only with proper XHTML files.