Skip to content

Commit 41ab630

Browse files
committed
No longer normalize elements before sending them through fromXML; this makes it impossible to resolve QNames
1 parent a85b7c4 commit 41ab630

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/AbstractElement.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,6 @@ public static function getChildrenOfClass(DOMElement $parent): array
153153
&& $node->namespaceURI === static::getNamespaceURI()
154154
&& $node->localName === static::getLocalName()
155155
) {
156-
// Normalize the DOMElement by importing it into a clean empty document
157-
$newDoc = DOMDocumentFactory::create();
158-
/** @var \DOMElement $node */
159-
$node = $newDoc->appendChild($newDoc->importNode($node, true));
160-
161156
$ret[] = static::fromXML($node);
162157
}
163158
}

0 commit comments

Comments
 (0)