Commits

Daniel Frett committed a3f2a72

don't automatically normalize the DOM before processing an XPath query

Comments (0)

Files changed (1)

             }
         }
     PPCODE:
-        if ( node->doc ) {
-            domNodeNormalize( xmlDocGetRootElement( node->doc ) );
-        }
-        else {
-            domNodeNormalize( PmmOWNER(SvPROXYNODE(pnode)) );
-        }
-
         INIT_ERROR_HANDLER;
         if (comp) {
           found = domXPathCompFind( node, comp, to_bool );
             }
         }
     PPCODE:
-        if ( node->doc ) {
-            domNodeNormalize( xmlDocGetRootElement(node->doc ) );
-        }
-        else {
-            domNodeNormalize( PmmOWNER(SvPROXYNODE(pnode)) );
-        }
-
         INIT_ERROR_HANDLER;
         if (comp) {
 	    nodelist = domXPathCompSelect( node, comp );
             }
         }
     PPCODE:
-        if ( ctxt->node->doc ) {
-            domNodeNormalize( xmlDocGetRootElement(ctxt->node->doc) );
-        }
-        else {
-            domNodeNormalize( PmmOWNER(PmmNewNode(ctxt->node)) );
-        }
-
         INIT_ERROR_HANDLER;
 
         PUTBACK ;
             }
         }
     PPCODE:
-        if ( ctxt->node->doc ) {
-            domNodeNormalize( xmlDocGetRootElement( ctxt->node->doc ) );
-        }
-        else {
-            domNodeNormalize( PmmOWNER(PmmNewNode(ctxt->node)) );
-        }
-
         INIT_ERROR_HANDLER;
         PUTBACK ;
         if (comp) {