I was looking for place to send bug report but I didn't find any
bugzilla etc. for library. Anyways I found case where extract does
extract false element if there is multiple siblings with same string.
Here is small test code for reproducing the problem:
>>> from BeautifulSoup import BeautifulSoup as BS
>>> doc = '<div>A<div>B</div>A</div>'
>>> d = BS(doc)
>>> d.first().next.next.next.next.extract()
u'A'
>>> d
<div><div>B</div>A</div>
In this case first A was removed, not the last one.
Cheers, Mikael
--
You received this message because you are subscribed to the Google Groups "beautifulsoup" group.
To post to this group, send email to
beauti...@googlegroups.com.
To unsubscribe from this group, send email to
beautifulsou...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/beautifulsoup?hl=en.