Modify ↓
Ticket #6158 (closed bug: fixed)
"elems is undefined" JavaScript error calling $(this).text() in .replaceWith() argument
| Reported by: | jablko | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.5.2 |
| Component: | manipulation | Version: | 1.4.1 |
| Keywords: | text, replaceWith | Cc: | |
| Blocking: | Blocked by: |
Attachments
Change History
comment:2 Changed 3 years ago by dmethvin
Confirmed; test case attached.
It seems like the function should be called in a this.each() for the matched set, and that's not happening.
comment:3 Changed 3 years ago by SlexAxton
- Keywords text, replaceWith added
- Priority set to low
- Status changed from new to open
- Milestone changed from 1.4.2 to 1.5
comment:4 Changed 2 years ago by jboesch
Pull request here: https://github.com/jquery/jquery/pull/261
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

