Skip to content

Commit b2c4882

Browse files
author
Rob Richards
committed
forgot this: set doc for new text node as current may not be in tree
1 parent 110920b commit b2c4882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/dom/text.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ PHP_FUNCTION(dom_text_split_text)
141141
xmlFree(cur);
142142

143143
xmlNodeSetContentLen(node, first, offset);
144-
nnode = xmlNewText(second);
144+
nnode = xmlNewDocText(node->doc, second);
145145

146146
xmlFree(first);
147147
xmlFree(second);

0 commit comments

Comments
 (0)