We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33b9d2d commit a20c0e9Copy full SHA for a20c0e9
ext/dom/document.c
@@ -840,6 +840,14 @@ PHP_METHOD(DOM_Document, importNode)
840
RETURN_FALSE;
841
}
842
843
+ /* TODO: decide if this is useful */
844
+#if 0
845
+ /* If importing from "old dom" into "new dom", mark the xmlns declarations as attributes too. */
846
+ if (php_dom_follow_spec_intern(intern) && !php_dom_follow_spec_intern(nodeobj)) {
847
+ dom_ns_compat_mark_attribute_list(retnodep);
848
+ }
849
+#endif
850
+
851
if (retnodep->type == XML_ATTRIBUTE_NODE && nodep->ns != NULL && retnodep->ns == NULL) {
852
xmlNsPtr nsptr = NULL;
853
xmlNodePtr root = xmlDocGetRootElement(docp);
0 commit comments