You are lucky it does anything at all. That "HTML" contains no <body></body> and is absolutely nothing like the XHTML it claims to be.

Have you tried feeding that mess through QtWebKit?