Bug Tracker

Modify

Ticket #9968 (closed bug: invalid)

Opened 23 months ago

Last modified 15 months ago

Siblings() not function correctly under chrome

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

Description

  1. The version(s) of jQuery affected

Version 1.6.2

  1. 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.

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

Windwows XP Professional 2002 Service Pack 3

  1. 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");

  1. 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.

Change History

comment:1 Changed 23 months ago by timmywil

  • Owner set to asterocean
  • Priority changed from undecided to low
  • Status changed from new to pending
  • Component changed from unfiled to effects

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.

comment:2 Changed 23 months ago by asterocean

  • Status changed from pending to new

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.

comment:3 Changed 22 months ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.