You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Pdb) print list(frag)
[<Element u'{http://www.w3.org/1999/xhtml}b' at 0x7fdd8eb42990>, <Element u'{http://www.w3.org/1999/xhtml}aside' at 0x7fdd8eb42e10>, <Element u'{http://www.w3.org/1999/xhtml}aside' at 0x7fdd8eb42e10>]
Note it's a fragment containing the same element twice.
list(parents[-1]).index(parent) in the etree walker is why. The above commit adds an assertion that the count is 1, which at least prevents the infinite loop.
Activity
gsnedders commentedon Dec 3, 2015
This is weird.
Note it's a fragment containing the same element twice.
gsnedders commentedon Dec 3, 2015
It's still strictly a tree, though, so I don't think the tree walker should break so badly?
Update tests.
gsnedders commentedon Dec 3, 2015
list(parents[-1]).index(parent)
in the etree walker is why. The above commit adds an assertion that the count is 1, which at least prevents the infinite loop.Update tests.
Update tests.
Add a test based on html5lib/html5lib-python#217
Fix html5lib#217: Fully remove element in removeChild in etree treebu…
fixup! Fix html5lib#217: Fully remove element in removeChild in etree…
2 remaining items