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 01c7732 commit 947cacaCopy full SHA for 947caca
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