-
Notifications
You must be signed in to change notification settings - Fork 114
Closed
Description
Children's filter processing is working incorrectly:
<?php
//define('QP_NO_AUTOLOADER', TRUE);
require 'src/qp.php';
$html = '<html><body><div id="hello"><p>One</p><p>TWO</p><div><p>test</p></div></div></body></html>';
$qp = htmlqp($html, '#hello');
print "Number of #hello elements: " . count($qp) . PHP_EOL;
print "Number of P children should be 2: " . $qp->children('div>p')->count() . PHP_EOL;
print "Number of div>P children should be 1: " . $qp->children('div>p')->count() . PHP_EOL;
exit;Metadata
Metadata
Assignees
Labels
No labels