Side navigation
#5316 closed bug (fixed)
Opened October 01, 2009 04:16PM UTC
Closed November 19, 2010 10:57PM UTC
replaceAll only the first element from the matched set replaces the selector set
Reported by: | TUSHKA | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | 1.4.3 |
Component: | manipulation | Version: | 1.4.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
var jq = $("<selector1>") // selects more than one element
jq.replaceAll("<selector2>")
only the first matched element from jq will show up as the replacement for "<selector2>"
Possible Fix: See Attachment
Possible fix, invoke replaceWith using call rather than apply. This will affect appendTo/append, prependTo/prepend, insertBefore/before, insertAfter/after as well, but it seems like those will work regardless of whether they are invoked via call or apply