phpquery icon indicating copy to clipboard operation
phpquery copied to clipboard

Separated find queries for request 'h1,h2,h3'

Open RobinTail opened this issue 9 years ago • 0 comments

In original jQuery, $('h1,h2,h3') returns a collection of elements sorted by their location in document. In phpQuery, ['h1,h2,h3'] launch separated find queries for h1, h2 and h3. So the result collection is sorted by tag name in the find request. In this case it is unable to quickly build a document's table of contents (headers hierarchy).

RobinTail avatar Sep 18 '15 12:09 RobinTail