Bug Tracker

Modify

Ticket #10719 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

remove() method breaks when tag name is provided as selector

Reported by: adeel.e@… Owned by:
Priority: low Milestone: None
Component: manipulation Version: 1.7
Keywords: Cc:
Blocking: Blocked by:

Description

Hi,

Doing $("p").remove() works just fine but doing $("div").remove("p") doesn't work.

I've also created a jsfiddle test:  http://jsfiddle.net/xpT3s/

Change History

comment:1 Changed 2 years ago by timmywil

  • Priority changed from undecided to blocker
  • Status changed from new to open
  • Component changed from unfiled to manipulation
  • Milestone changed from None to 1.7.1

comment:2 Changed 2 years ago by timmywil

  • Priority changed from blocker to low
  • Status changed from open to closed
  • Resolution set to invalid
  • Milestone changed from 1.7.1 to None

Wait, what am I thinking. The argument to remove is a filter for the current selection, not a find.  http://jsfiddle.net/timmywil/xpT3s/4/

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.