We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ea55c7 commit fb68f8cCopy full SHA for fb68f8c
html5lib/treebuilders/etree_lxml.py
@@ -44,7 +44,11 @@ def __init__(self):
44
self._childNodes = []
45
46
def appendChild(self, element):
47
- self._elementTree.getroot().addnext(element._element)
+ last = self._elementTree.getroot()
48
+ for last in self._elementTree.getroot().itersiblings():
49
+ pass
50
+
51
+ last.addnext(element._element)
52
53
def _getChildNodes(self):
54
return self._childNodes
0 commit comments