Comment 3 for bug 1189267

Revision history for this message
Robert Bitel (lonecow) wrote : Re: [Bug 1189267] Re: Infinate loop in Tag._all_strings
  • Test.py Edit (704 bytes, application/octet-stream; name="Test.py")

Im using Beautiful soup 4.2.1 with I installed with pip using a virtual
environment.
I was using html5lib parser

Attached is sample code.

On Sun, Jun 9, 2013 at 6:57 PM, Leonard Richardson <email address hidden>wrote:

> I can't duplicate this problem with html.parser, lxml, or html5lib. What
> version of Beautiful Soup are you using, what parser are you telling it
> to use, and what code are you running?
>
> If you're not using Beautiful Soup 4.2.1, you may be encountering bug
> 1182089, which has been fixed.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1189267
>
> Title:
> Infinate loop in Tag._all_strings
>
> Status in Beautiful Soup:
> New
>
> Bug description:
> It seems we will enter an infinate loop when we issue an all strings.
> Im not exactly sure what is going on but it seems like this happens if
> we have 2 of the exact same descendants one right after another and
> causes an infinite loop.
>
> I have hacked together a fix, but I will not share because I know for
> sure it is wrong. It seems like the iterator is not detecting the last
> element.
>
>
> Ive attached the broken html file. and any other information you need
> let me know.
>
> Thanks
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/beautifulsoup/+bug/1189267/+subscriptions
>