Skip to main content

Bug Tracker

Side navigation

#14564 closed bug (notabug)

Opened November 21, 2013 03:47PM UTC

Closed December 06, 2013 06:10PM UTC

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

Reported by: nir@ezface.com 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

Attachments (0)
Change History (1)

Changed December 06, 2013 06:10PM UTC by timmywil comment:1

resolution: → notabug
status: newclosed

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

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