Bug Tracker

Modify

Ticket #4726 (closed bug: worksforme)

Opened 5 years ago

Last modified 4 years ago

el.wrap('<element1><element2></element2></element1>') only wraps <element1> in IE7

Reported by: rossbruniges Owned by:
Priority: minor Milestone:
Component: manipulation Version: 1.3.1
Keywords: Cc:
Blocking: Blocked by:

Description

Hope the summary is descriptive enough.

Trying to wrap multiple elements around a node fails ie IE7 by only wrapping the first in the list.

Work around was to use wrap twice (and maybe this is the expected usage) but it did cause me about an hour of head-scratching - works FF, Safari, Opera.

Attachments

test-4726.html Download (542 bytes) - added by dmethvin 4 years ago.

Change History

comment:1 Changed 4 years ago by dmethvin

  • Component changed from core to manipulation

Changed 4 years ago by dmethvin

comment:2 Changed 4 years ago by dmethvin

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

Works for me, see attachment. Perhaps you were trying to create invalid html, such as wrapping block elements in a paragraph?

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.