Rct567 / DomQuery

PHP library for easy 'jQuery like' DOM traversing and manipulation.
MIT License
133 stars 38 forks source link

Select Class Error #17

Closed SpyShare closed 1 year ago

SpyShare commented 3 years ago

im try select Class But Get Error My Code:


require '../../Phper/Slcquery/vendor/autoload.php';
use Rct567\DomQuery\DomQuery;

$resp = "<div class='Test'> <a> Hello World </a> </div>";

    $dom = new DomQuery("<div>".$resp."</div>");

     $links = $dom->find('.Test');

     echo $links->html(); 

Fatal error: Uncaught Exception: Expression //.Test is malformed. in D:\Xampp\htdocs

Rct567 commented 1 year ago

Please try the latest version and let me know if you still encounter this issue.