You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I reckon there is a little bug in :not( selector ).
For example,
----csQuery----:
CQ dom = CQ.CreateFromUrl("http://www.franchisebusiness.com.au/c/ABS-Auto-Brake-Service");
CQ items = dom.Select(".items:not(.relatedListingsContainer .items)");
int itemLength = items.Length; // itemLength = 2
----jQuery----: (I directly tested from Google Chrome's console panel):
var items = $(".items:not(.relatedListingsContainer .items)");
var itemLength = items.length; // itemLength = 0
How come "itemLength" is different on jQuery and csQuery? or How am I gonna get similar result using csQuery?
The text was updated successfully, but these errors were encountered:
Fixed in latest push. Turned out to be a pretty nasty problem, I had a fundamental implementation issue with subselectors that for some reason were not addressed in any existing test case. Glad this got found this before I released 1.3!
I reckon there is a little bug in :not( selector ).
For example,
----csQuery----:
CQ dom = CQ.CreateFromUrl("http://www.franchisebusiness.com.au/c/ABS-Auto-Brake-Service");
CQ items = dom.Select(".items:not(.relatedListingsContainer .items)");
int itemLength = items.Length; // itemLength = 2
----jQuery----: (I directly tested from Google Chrome's console panel):
var items = $(".items:not(.relatedListingsContainer .items)");
var itemLength = items.length; // itemLength = 0
How come "itemLength" is different on jQuery and csQuery? or How am I gonna get similar result using csQuery?
The text was updated successfully, but these errors were encountered: