<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Parsing a github project page takes forever.</div><div><br></div><div><div><font face="Menlo">> (setf sgml::*parse-warn-level* 5) </font></div><div><font face="Menlo">> (let ((page (drakma:http-request "<a href="https://github.com/rss-sync/corpus">https://github.com/rss-sync/corpus</a>"))) (handler-case (bt:with-timeout (10) (chtml:parse page (make-instance 'hax:default-handler))) (condition (c) c)))</font></div></div><font face="Menlo">#<bordeaux-threads:timeout #x302009C80C6D></font><div><br></div><div>Multiple div's appearing in a THead element are the root cause.<div><br></div><div><div><font face="Menlo">> (setf sgml::*parse-warn-level* 0)</font></div><div><font face="Menlo">0</font></div></div><div><font face="Menlo">> (chtml:parse "<table><thead><div>a</div><div>b</div></thead></table>" (make-instance 'hax:default-handler))</font></div><div><div><font face="Menlo">;; Parser warning: Line 1,     column 26  : ****  [-] Saw <div> in thead -- nuked <div>.</font></div><div><font face="Menlo">;; Parser warning: Line 1,     column 31  : ****  [H] Saw </div> in thead -- ??? patched (</div> <div>) -> (<div> </div>)</font></div><div><font face="Menlo">;; Parser warning: Line 1,     column 31  : ****  [-] Saw <div> in thead -- nuked <div>.</font></div><div><font face="Menlo">;; Parser warning: Line 1,     column 32  : ****  [H] Saw </div> in thead -- ??? patched (</div> <pcdata>) -> (<pcdata> </div>)</font></div><div><font face="Menlo">;; Parser warning: Line 1,     column 32  : ****  [-] Saw <pcdata> in thead -- nuked <pcdata>.</font></div><div><font face="Menlo">;; Parser warning: Line 1,     column 38  : ****  [H] Saw </div> in thead -- ??? patched (</div> </div>) -> (</div> </div>)</font></div><div><font face="Menlo">;; Parser warning: Line 1,     column 38  : ****  [H] Saw </div> in thead -- ??? patched (</div> </div>) -> (</div> </div>)</font></div><div><font face="Menlo">;; Parser warning: Line 1,     column 38  : ****  [H] Saw </div> in thead -- ??? patched (</div> </div>) -> (</div> </div>)</font></div><div><font face="Menlo">…</font></div></div><div><br></div></div><div>So far, I'm not clever enough to fix this.</div><div><br></div><div> - ben</div><div><br></div><div>ps. Thanks for the awesome library.</div></body></html>