27 Mar
2006
27 Mar
'06
10:42 p.m.
Stefan Behnel wrote:
I created a branch "htmlparser" (as opposed to the previous "htmlparse") and used it to rewrite the current parser to support both the XML and HTML parser API of libxml2 (file src/lxml/parser.pxi).
Problem: It doesn't work (yet), it crashes.
Correction: It works *now*. :) There was a special case test for the document node in the lxml element deallocation code - for the /XML/ document node. The HTML document node has to be treated equally. http://codespeak.net/svn/lxml/branch/htmlparser/ I integrated the test case now. Any input on this is still appreciated. If it turns out to work well, this will be merged into the trunk to be integrated in 1.0. Stefan