diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lxml/proxy.pxi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lxml/proxy.pxi b/src/lxml/proxy.pxi index 0997e582..2f8e76c5 100644 --- a/src/lxml/proxy.pxi +++ b/src/lxml/proxy.pxi @@ -332,6 +332,8 @@ cdef int moveNodeToDocument(_Document doc, xmlDoc* c_source_doc, cdef proxy_count = 0 if not tree._isElementOrXInclude(c_element): + c_element.doc = c_doc + _fixDocChildren(c_element.children, c_doc) return 0 c_start_node = c_element |
