[lxml-dev] Setting URL from lxml.html.fromstring, etc

Ian Bicking ianb at colorstudy.com
Tue Feb 26 21:55:28 CET 2008


Stefan Behnel wrote:
> Setting the document URL works on the current trunk.

Cool.

> I also added a "base" property to Elements that is based on the xml:base
> attribute (or the appropriate fallback to the document URL).

Hmm... there's a property in lxml.html called .base_url, which 
previously just read docinfo.URL.  Now it could read .base... but 
obviously that's silly, as it's just an alias.

We could deprecate .base_url in lxml.html, or rename .base as .base_url, 
but having both ain't good.

   Ian


More information about the lxml-dev mailing list