Bug Tracker

Modify

Ticket #6774 (closed bug: fixed)

Opened 4 years ago

Last modified 3 years ago

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

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/

Change History

comment:1 Changed 4 years ago by dmethvin

  • Priority set to undecided
  • Status changed from new to closed
  • Resolution set to invalid

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

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

comment:2 Changed 3 years ago by jitter

  • Priority changed from undecided to low
  • Status changed from closed to reopened
  • Version changed from 1.4.2 to 1.5
  • Resolution invalid deleted
  • Milestone changed from 1.4.3 to 1.5.1

comment:3 Changed 3 years ago by jitter

  • Owner set to jitter
  • Status changed from reopened to assigned

comment:4 Changed 3 years ago by jitter

  • Status changed from assigned to closed
  • Resolution set to fixed

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.