[core] Update simplehtmldom to latest released (#2556)

This commit is contained in:
Bocki 2022-03-29 22:45:26 +02:00 committed by GitHub
parent 461269195b
commit ac242609f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -18,7 +18,7 @@
* Vadim Voituk
* Antcs
*
* Version Rev. 1.9 (290)
* Version Rev. 1.9.1 (291)
*/
define('HDOM_TYPE_ELEMENT', 1);
@ -609,6 +609,13 @@ class simple_html_dom_node
$pass = false;
}
// Handle 'text' selector
if($pass && $tag === 'text' && $node->tag === 'text') {
$ret[array_search($node, $this->dom->nodes, true)] = 1;
unset($node);
continue;
}
// Skip if node isn't a child node (i.e. text nodes)
if($pass && !in_array($node, $node->parent->children, true)) {
$pass = false;