Side navigation
#4605 closed bug (duplicate)
Opened April 29, 2009 11:38AM UTC
Closed October 08, 2009 05:32AM UTC
Siblings (~) selector doesn't work right
Reported by: | prokofyev | Owned by: | john |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | selector | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
$("#some_id ~ div") doesn't select DIV siblings if element with ID="some_id" is DIV itself.
$("#some_id ~ span") doesn't select SPAN siblings if element with ID="some_id" is SPAN itself.
Please, look for code sample here:
http://stackoverflow.com/questions/793687/cant-select-span-sibling
Thanks!
Attachments (0)
Change History (3)
Changed October 08, 2009 05:05AM UTC by comment:1
Changed October 08, 2009 05:06AM UTC by comment:2
Test pulled from this thread:
http://groups.google.com/group/sizzlejs/browse_thread/thread/1ac386e6945b44b9
Here is another example with a qtest:
http://dl.getdropbox.com/u/513327/sibling-selector/index.html