html5lib tree builder creates an inconsistent tree when reparenting tags
Bug #1189267 reported by
Robert Bitel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Beautiful Soup |
Fix Released
|
Undecided
|
Unassigned |
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
Related branches
Changed in beautifulsoup: | |
status: | Confirmed → Fix Committed |
Changed in beautifulsoup: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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.