Skip to content

Commit

Permalink
Add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdos committed Dec 26, 2023
1 parent 903eb86 commit 49fdb61
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ext/dom/document.c
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,14 @@ PHP_METHOD(DOM_Document, importNode)
RETURN_FALSE;
}

/* TODO: decide if this is useful */
#if 0
/* If importing from "old dom" into "new dom", mark the xmlns declarations as attributes too. */
if (php_dom_follow_spec_intern(intern) && !php_dom_follow_spec_intern(nodeobj)) {
dom_ns_compat_mark_attribute_list(retnodep);
}
#endif

if (retnodep->type == XML_ATTRIBUTE_NODE && nodep->ns != NULL && retnodep->ns == NULL) {
xmlNsPtr nsptr = NULL;
xmlNodePtr root = xmlDocGetRootElement(docp);
Expand Down

0 comments on commit 49fdb61

Please sign in to comment.