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.
2 parents 59a684f + 947caca commit 5d5f978Copy full SHA for 5d5f978
XPath/Extension/NodeExtension.php
@@ -157,7 +157,7 @@ public function translateElement(Node\ElementNode $node): XPathExpr
157
{
158
$element = $node->getElement();
159
160
- if ($this->hasFlag(self::ELEMENT_NAME_IN_LOWER_CASE)) {
+ if ($element && $this->hasFlag(self::ELEMENT_NAME_IN_LOWER_CASE)) {
161
$element = strtolower($element);
162
}
163
0 commit comments