Bug Tracker

Modify

Ticket #7277 (closed bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

CSS sibling selectors not working

Reported by: anonymous Owned by:
Priority: high Milestone: 1.4.4
Component: selector Version: 1.4.3
Keywords: Cc:
Blocking: Blocked by:

Description

Using ~ or + selectors now fails.

See here  http://jsbin.com/ucugi3 and toggle jQuery version between latest and 1.4.2

Change History

comment:1 Changed 3 years ago by rwaldron

  • Priority changed from undecided to high
  • Status changed from new to open
  • Component changed from unfiled to selector
  • Milestone changed from 1.5 to 1.4.4

Confirmed - This changes the behavior significantly between versions.

Ex. <table><tr><td class="test"></td><td>Hello world</td></tr></table>

$('td.test:eq(0) ~ td').text()

returns Hello world in 1.4.2 returns nothing in 1.4.3

comment:2 Changed 3 years ago by john

  • Status changed from open to closed
  • Resolution set to duplicate

comment:3 Changed 3 years ago by john

Duplicate of #7220.

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.