Hi Ian, Ian Bicking wrote:
Stefan Behnel wrote:
I get a reproduceable XPath crasher in the HTML module Ian is working on with libxml2 2.6.27. It's gone with 2.6.28. libxslt is a good bet here, too.
Which XPath is that? I'd rather avoid it if I can, for those that might have 2.6.27.
It happens in the "clean" doctests, in one of the ".xpath()" method calls. One thing to try might be using XPath() instead. However, looking at the way clean() is implemented, I would rather rewrite a few places to use the already existing loop over getiterator() rather than XPath. Most likely, users will end up requiring the loop to run anyway, so it would be best to use it for more rather than additionally parsing and running a C loop on different XPath expressions. Stefan