Opened 11 years ago
Closed 11 years ago
#10719 closed bug (invalid)
remove() method breaks when tag name is provided as selector
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | manipulation | Version: | 1.7 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
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 (2)
comment:1 Changed 11 years ago by
Component: | unfiled → manipulation |
---|---|
Milestone: | None → 1.7.1 |
Priority: | undecided → blocker |
Status: | new → open |
comment:2 Changed 11 years ago by
Milestone: | 1.7.1 → None |
---|---|
Priority: | blocker → low |
Resolution: | → invalid |
Status: | open → 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.
Confirmed.
http://jsfiddle.net/timmywil/xpT3s/2/