Side navigation
#10719 closed bug (invalid)
Opened November 08, 2011 02:23PM UTC
Closed November 08, 2011 02:53PM UTC
remove() method breaks when tag name is provided as selector
Reported by: | adeel.e@gmail.com | 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/
Attachments (0)
Change History (2)
Changed November 08, 2011 02:50PM UTC by comment:1
component: | unfiled → manipulation |
---|---|
milestone: | None → 1.7.1 |
priority: | undecided → blocker |
status: | new → open |
Changed November 08, 2011 02:53PM UTC by comment:2
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.
Confirmed.
http://jsfiddle.net/timmywil/xpT3s/2/