Skip to content

Commit ff22f98

Browse files
author
Jakub Stawowy
committed
chore() Upgrade simplehtmldom to 1.9.1
1 parent 67976ef commit ff22f98

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
php-simple-html-dom-parser
22
==========================
33

4-
Version 1.9 - PHP 7.3 compatible
5-
PHP Simple HTML DOM Parser changelog: https://sourceforge.net/projects/simplehtmldom/files/simplehtmldom/1.9/
4+
Version 1.9.1 - PHP 7.3 compatible
5+
PHP Simple HTML DOM Parser changelog: https://sourceforge.net/projects/simplehtmldom/files/simplehtmldom/1.9.1/
66

77

88
Install

src/KubAT/PhpSimple/lib/simple_html_dom.php

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* Vadim Voituk
2121
* Antcs
2222
*
23-
* Version Rev. 1.9 (290)
23+
* Version Rev. 1.9.1 (291)
2424
*/
2525

2626
define('HDOM_TYPE_ELEMENT', 1);
@@ -611,6 +611,13 @@ protected function seek($selector, &$ret, $parent_cmd, $lowercase = false)
611611
$pass = false;
612612
}
613613

614+
// Handle 'text' selector
615+
if($pass && $tag === 'text' && $node->tag === 'text') {
616+
$ret[array_search($node, $this->dom->nodes, true)] = 1;
617+
unset($node);
618+
continue;
619+
}
620+
614621
// Skip if node isn't a child node (i.e. text nodes)
615622
if($pass && !in_array($node, $node->parent->children, true)) {
616623
$pass = false;

0 commit comments

Comments
 (0)