diff options
author | Andres Rey <[email protected]> | 2018-10-21 19:32:43 +0100 |
---|---|---|
committer | Andres Rey <[email protected]> | 2018-10-21 19:32:43 +0100 |
commit | fd5f669768cab64a6c09476d3260422890b817ba (patch) | |
tree | 69244d7b431fe9e9596d538350771c6383ab8d97 /src/Nodes/NodeTrait.php | |
parent | e62dfbd65f6e17440f8cedb7faef0ee256fca64a (diff) |
Fix incorrect tagName check
Diffstat (limited to 'src/Nodes/NodeTrait.php')
-rw-r--r-- | src/Nodes/NodeTrait.php | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |