From 1bdbffcf11a9cef60beff2a6afba51ba0bb1e8c2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 1 Aug 2013 16:31:44 +0400 Subject: [PATCH] highlight: remove unnecessary test for DomText --- include/functions.php | 1 - 1 file changed, 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index b4789aec..48111e40 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2867,7 +2867,6 @@ $elements = $xpath->query("//*/text()"); foreach ($elements as $child) { - if (!$child instanceof DomText) continue; $fragment = $doc->createDocumentFragment(); $text = $child->textContent; -- 2.39.5