Rct567 / DomQuery

PHP library for easy 'jQuery like' DOM traversing and manipulation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

white space causes find to malfunction

torian257x opened this issue · comments

problem:

$this->dq->find('[data-id="e1eaziw"]')->eq(1);

works fine, returns 2 instance of that data-id attribute

$this->dq->find('[data-id="e1eaziw "]')->eq(1);

will return first instance.

looks like this bug is generally around...