Bug Tracker

Opened 5 years ago

Closed 5 years ago

#10719 closed bug (invalid)

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



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 (2)

comment:1 Changed 5 years ago by timmywil

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

comment:2 Changed 5 years ago by timmywil

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

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/

Note: See TracTickets for help on using tickets.