[lxml-dev] .base and docinfo.URL

Ian Bicking ianb at colorstudy.com
Mon Mar 10 23:21:46 CET 2008


Does .base inherit from docinfo.URL?  It doesn't seem like it does.  I 
tried changing .base_url to just return self.base, but if I do:

 >>> from lxml.html import parse
 >>> doc = parse('http://python.org').getroot()
 >>> print doc.base
None
 >>> doc.getroottree().docinfo.URL
'http://python.org'



More information about the lxml-dev mailing list