Hi Andres,

On Fri, Sep 10, 2010 at 8:30 PM, Andres Riancho
<andres.rian...@gmail.com> wrote:
> Javier,
>
>    Simple question... are we sure the HTMLParser has a recovery
> keyword parameter?

Yes Andres. See this:

>>> from lxml import etree
>>> help(etree.HTMLParser)
Help on class HTMLParser in module lxml.etree:

class HTMLParser(_FeedParser)
 |  ...
 |  - recover            - try hard to parse through broken HTML (default: True)
 | ...

I left it like this to make it clearer as we were using XMLParser
before; which defaults to False (we had to set it to True in order to
make the parsing of broken html docs possible).
In my opinion, specifying the value for the *recover* parameter is
more descriptive and explicit taking into account that it may impact
so much on the parsing behaviour.

Thanks!

Javier

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
W3af-develop mailing list
W3af-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/w3af-develop

Reply via email to