Bug Tracker

Opened 9 years ago

Closed 9 years ago

#14564 closed bug (notabug)

$.wrap function does not wrap objects properly in IE 9/10

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.1
Keywords: Cc:
Blocked by: Blocking:

Description

The wrap function doesnt work / works wrong in IE 9/10

JS fiddle expected result :

<div id="test">
   <div>
      <ul id="list">
         <li></li>
         <li></li>
      </ul>
   </div>
</div>

jsfiddle result :

<div id="test">
    <ul id="list">
        <li></li>
        <li></li>
    </ul>
</div>

http://jsfiddle.net/r2yWQ/

when switching to jquery 1.9.1 on jsfiddle it seems to work.

The following has been tested in jquery: 1.10.1 , 2.0.2, 2.0.3 on IE 9/10, FF25 and Chrome 31.0.1650.57 m

Change History (1)

comment:1 Changed 9 years ago by Timmy Willison

Resolution: notabug
Status: newclosed

This seems to be working with jQuery edge (I tested IE9 on Windows 7).

http://jsfiddle.net/timmywil/r2yWQ/2/

Note: See TracTickets for help on using tickets.