Comment #1 on issue 116 by [email protected]: treewalker escapes from
subtree if root of subtree has a next sibling
http://code.google.com/p/html5lib/issues/detail?id=116
The following change seems to work for me:
--- _base.py.old 2009-08-31 19:20:41.000000000 +0100
+++ _base.py 2009-08-31 19:20:21.000000000 +0100
@@ -146,11 +146,12 @@
name, attributes, hasChildren = details
if name not in voidElements:
yield self.endTag(name)
+ if self.tree is currentNode:
+ currentNode = None
+ break
nextSibling = self.getNextSibling(currentNode)
if nextSibling is not None:
currentNode = nextSibling
break
- if self.tree is currentNode:
- currentNode = None
else:
currentNode = self.getParentNode(currentNode)
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"html5lib-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/html5lib-discuss?hl=en-GB
-~----------~----~----~----~------~----~------~--~---