Skip to main content

Bug Tracker

Side navigation

#9968 closed bug (invalid)

Opened August 04, 2011 04:03AM UTC

Closed August 18, 2011 03:55PM UTC

Last modified March 14, 2012 08:00AM UTC

Siblings() not function correctly under chrome

Reported by: asterocean Owned by: asterocean
Priority: low Milestone: None
Component: effects Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:
Description

1. The version(s) of jQuery affected

Version 1.6.2

2. The browser (or browsers) that you are able to reproduce the bug in, including version numbers

Chrome 12.0.742.112 and Android 2.3.3 default browsers.

3. The operating system (or operating systems) you experienced the bug on.

Windwows XP Professional 2002 Service Pack 3

4. Step-by-step instructions on how to reproduce the issue, including any required system configuration changes

http://www.fmsoft.cn/espier/index.html &

http://www.fmsoft.cn/espier/index2.html

are identical except index.html using jquery.1.1.4 otherthan index2.html using jquery.1.6.2 .

index.html function corectly, but index2.html is a mess under chrome.

Beside, index2.html could function correctly under ie/firefox.

the core code is :

$(this).next("span").slideToggle("fast").siblings("span:visible").slideUp("fast");

5. A description of what you expect to happen, and what actually happens

when click on one title , all other panels under other titles should been colsed, but they don't.

Attachments (0)
Change History (3)

Changed August 04, 2011 01:44PM UTC by timmywil comment:1

component: unfiledeffects
owner: → asterocean
priority: undecidedlow
status: newpending

Thanks for taking the time to contribute to the jQuery project!

I can't seem to open the given urls. Perhaps you could provide a reduced test case on http://jsfiddle.net to help us assess your ticket.

Changed August 10, 2011 06:46AM UTC by asterocean comment:2

status: pendingnew

sorry for not familiar with jsFiddle before, i put it on jsFiddle now.

with jquery 1.6.2

http://jsfiddle.net/asterocean/FaLkD/

same code with jquery 1.2.6, the correct one.

http://jsfiddle.net/asterocean/vMS58/

please test using chrome or other android phones' default browsers.

ps. jquery 1.5.2 / 1.4.4 / 1.3.2 have the same problem.

Changed August 18, 2011 03:55PM UTC by dmethvin comment:3

resolution: → invalid
status: newclosed

I stepped through that code in Chrome 13.0.782 and verified that .siblings("div") properly returned only the div elements. It sounds like this is a Chrome bug for some specific version.