Bug Tracker

Modify

Ticket #5875 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

.replaceWith() doesn't work with empty set

Reported by: johns Owned by:
Priority: major Milestone: 1.4.1
Component: manipulation Version: 1.4
Keywords: Cc:
Blocking: Blocked by:

Description

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.

Change History

comment:1 Changed 3 years ago by dmethvin

  • Component changed from unfiled to manipulation

comment:2 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to fixed

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.