CsQuery icon indicating copy to clipboard operation
CsQuery copied to clipboard

Possible wrong selection context

Open gravityFlower opened this issue 9 years ago • 0 comments

Hello,

i have the problem that on calling Cq() on an element, there seems to be a problem with the context. I'm loading a html file and filter the elements. Then i call Each() on the filtered list of elements. In the assigned function, i call Cq() on the element. I assume that the element is the context for the applied filter( like jQuery $("<filter-expression>",element). But the result contains all elements of the site matching this expression. You can see this in an example here: https://gist.github.com/gravityFlower/6e42f0c1f3f25306ebf6 I hope you can tell me if i'm doing something wrong or if this is a bug. If this is intended, it would be best to document this feature.

gravityFlower avatar Jun 07 '15 22:06 gravityFlower