Bug Tracker

Modify

Ticket #12019 (closed bug: duplicate)

Opened 11 months ago

Last modified 11 months ago

Calling next() on an element without any next sibling throws

Reported by: phistuck Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8b1
Keywords: Cc:
Blocking: Blocked by:

Description

Test case - $("body").next();

Throws (in Chrome 20) - TypeError: Cannot read property 'nodeType' of null

Works silently (returns an empty set) in 1.7.2.

Change History

comment:1 Changed 11 months ago by dmethvin

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

No test case provided, but seems like a dup.

comment:2 Changed 11 months ago by dmethvin

Duplicate of #11969.

comment:3 Changed 11 months ago by phistuck

Sorry for the duplication. Note that I did provide a test case.

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.