From fd5f669768cab64a6c09476d3260422890b817ba Mon Sep 17 00:00:00 2001 From: Andres Rey Date: Sun, 21 Oct 2018 19:32:43 +0100 Subject: Fix incorrect tagName check --- src/Nodes/NodeTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Nodes/NodeTrait.php') diff --git a/src/Nodes/NodeTrait.php b/src/Nodes/NodeTrait.php index a140012..e811c12 100644 --- a/src/Nodes/NodeTrait.php +++ b/src/Nodes/NodeTrait.php @@ -472,7 +472,7 @@ trait NodeTrait */ public function isPhrasingContent() { - return $this->nodeType === XML_TEXT_NODE || !in_array($this->nodeName , $this->phrasing_elems) || + return $this->nodeType === XML_TEXT_NODE || in_array($this->nodeName, $this->phrasing_elems) !== false || (!is_null($this->childNodes) && ($this->nodeName === 'a' || $this->nodeName === 'del' || $this->nodeName === 'ins') && array_reduce(iterator_to_array($this->childNodes), function ($carry, $node) { -- cgit v1.2.3