Bug Tracker

Modify

Ticket #4931 (closed bug: duplicate)

Opened 4 years ago

Last modified 4 years ago

prev ~ siblings bug

Reported by: xfsn Owned by: john
Priority: major Milestone: 1.4
Component: selector Version: 1.3.2
Keywords: Cc:
Blocking: Blocked by:

Description

<div id="id1">1</div><p>2</p>

alert($("#id1 ~ p").text()); -> 2

<p id="id1">1</p><p>2</p>

alert($("#id1 ~ p").text()); -> empty, no element matched

Change History

comment:1 Changed 4 years ago by john

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

Duplicate of #4243.

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.