Skip to main content

Bug Tracker

Side navigation

#8849 closed bug (worksforme)

Opened April 12, 2011 03:06AM UTC

Closed April 15, 2011 04:41PM UTC

Selector issues

Reported by: Owned by:
Priority: undecided Milestone:
Component: selector Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

jQuery 1.4.4 selects all classes with the name share_posts when asked to select class name .share

so when i do


i get 12, when there is only one element with class name share


gives 11, which is correct.

Attachments (0)
Change History (2)

Changed April 12, 2011 03:15AM UTC by timmywil comment:1

component: unfiledselector
owner: →
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced test case on that reproduces the issue experienced to help us assess your ticket!

Additionally, test against the jQuery (edge) version to ensure the issue still exists.

Changed April 15, 2011 04:41PM UTC by addyosmani comment:2

resolution: → worksforme
status: pendingclosed

I've created a test case based on the code you supplied here: however using jQuery 1.5.1 and 1.5.2 there are no issues with class selectors (or .length) resulting in the behavior you've mentioned in your ticket. I also can't reproduce the behavior mentioned using jQuery 1.4.4. Closing as we can't reproduce but please feel free to check your markup to ensure there isn't any other code affecting what you're doing.