Skip to main content

Bug Tracker

Side navigation

#12019 closed bug (duplicate)

Opened July 05, 2012 12:22PM UTC

Closed July 05, 2012 01:00PM UTC

Last modified July 10, 2012 10:41AM UTC

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:
Blocked by: Blocking:
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.

Attachments (0)
Change History (3)

Changed July 05, 2012 01:00PM UTC by dmethvin comment:1

resolution: → duplicate
status: newclosed

No test case provided, but seems like a dup.

Changed July 05, 2012 01:00PM UTC by dmethvin comment:2

Duplicate of #11969.

Changed July 10, 2012 10:41AM UTC by phistuck comment:3

Sorry for the duplication.

Note that I did provide a test case.