diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-12-23 21:28:37 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-12-23 21:28:37 +0100 |
commit | 220a7baeeee484bbd356a506f23deb57c57e0056 (patch) | |
tree | b56a120e27aeadf1a74b8ae4b9293326cc319c1b | |
parent | fff8a6b87e05200a0ad0af6f86c2e859c7de9172 (diff) | |
download | android_external_libxml2-220a7baeeee484bbd356a506f23deb57c57e0056.tar.gz android_external_libxml2-220a7baeeee484bbd356a506f23deb57c57e0056.tar.bz2 android_external_libxml2-220a7baeeee484bbd356a506f23deb57c57e0056.zip |
Don't add IDs in xmlSetTreeDoc
This partially reverts my previous commit fixing bug #741919.
-rw-r--r-- | tree.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2806,11 +2806,19 @@ xmlSetTreeDoc(xmlNodePtr tree, xmlDocPtr doc) { prop->doc = doc; xmlSetListDoc(prop->children, doc); + /* + * TODO: ID attributes should be also added to the new + * document, but this breaks things like xmlReplaceNode. + * The underlying problem is that xmlRemoveID is only called + * if a node is destroyed, not if it's unlinked. + */ +#if 0 if (xmlIsID(doc, tree, prop)) { xmlChar *idVal = xmlNodeListGetString(doc, prop->children, 1); xmlAddID(NULL, doc, idVal, prop); } +#endif prop = prop->next; } |