mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-05 00:59:35 +00:00
[core] Update simplehtmldom to latest released (#2556)
This commit is contained in:
parent
461269195b
commit
ac242609f4
9
vendor/simplehtmldom/simple_html_dom.php
vendored
9
vendor/simplehtmldom/simple_html_dom.php
vendored
@ -18,7 +18,7 @@
|
|||||||
* Vadim Voituk
|
* Vadim Voituk
|
||||||
* Antcs
|
* Antcs
|
||||||
*
|
*
|
||||||
* Version Rev. 1.9 (290)
|
* Version Rev. 1.9.1 (291)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define('HDOM_TYPE_ELEMENT', 1);
|
define('HDOM_TYPE_ELEMENT', 1);
|
||||||
@ -609,6 +609,13 @@ class simple_html_dom_node
|
|||||||
$pass = false;
|
$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)
|
// Skip if node isn't a child node (i.e. text nodes)
|
||||||
if($pass && !in_array($node, $node->parent->children, true)) {
|
if($pass && !in_array($node, $node->parent->children, true)) {
|
||||||
$pass = false;
|
$pass = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user