Ticket #5875 (closed bug: fixed)
.replaceWith() doesn't work with empty set
|Reported by:||johns||Owned by:|
I have a function that calls $(selector).replaceWith("html here"). When the selector doesn't match any elements the replaceWith call causes the function "die" (the lines after it aren't executed). I don't see any errors in the Firebug console. This worked with 1.3.2. Same behavior with both min and normal versions.