Skip to main content

Bug Tracker

Side navigation

#6774 closed bug (fixed)

Opened July 07, 2010 09:03PM UTC

Closed February 17, 2011 03:53PM UTC

Calling is(":selected") on detached option tags fails

Reported by: ehynds Owned by: jitter
Priority: low Milestone: 1.5.1
Component: traversing Version: 1.5
Keywords: Cc:
Blocked by: Blocking:
Description

Trying to determine the selected state of an option tag with is(":selected"), after said option tag has been detach()'d, throws an elem.parentNode is null (FF) / Cannot read property 'selectedIndex' of null (webkit) error.

Test case: http://jsfiddle.net/ehynds/trDpZ/3/

Attachments (0)
Change History (4)

Changed September 30, 2010 01:35AM UTC by dmethvin comment:1

priority: → undecided
resolution: → invalid
status: newclosed

This is a Sizzle bug, I've created a ticket there:

http://github.com/jeresig/sizzle/issues/issue/25

Changed February 17, 2011 03:52PM UTC by jitter comment:2

milestone: 1.4.31.5.1
priority: undecidedlow
resolution: invalid
status: closedreopened
version: 1.4.21.5

Changed February 17, 2011 03:53PM UTC by jitter comment:3

owner: → jitter
status: reopenedassigned

Changed February 17, 2011 03:53PM UTC by jitter comment:4

resolution: → fixed
status: assignedclosed