ext/nokogiri/xml_document.c in nokogiri-maglev--1.5.3 vs ext/nokogiri/xml_document.c in nokogiri-maglev--1.5.4.20120815005250
- old
+ new
@@ -100,11 +100,11 @@
if(NIL_P(root)) {
old_root = xmlDocGetRootElement(doc);
if(old_root) {
xmlUnlinkNode(old_root);
- NOKOGIRI_ROOT_NODE(old_root);
+ nokogiri_root_node(old_root);
}
return root;
}
@@ -119,10 +119,10 @@
rb_raise(rb_eRuntimeError, "Could not reparent node (xmlDocCopyNode)");
}
}
xmlDocSetRootElement(doc, new_root);
- if(old_root) NOKOGIRI_ROOT_NODE(old_root);
+ if(old_root) nokogiri_root_node(old_root);
return root;
}
/*
* call-seq: