Bug Tracker

Modify

Ticket #3532 (closed bug: invalid)

Opened 5 years ago

Last modified 4 years ago

Wrap sometimes duplicates the wrong object.

Reported by: Julian-Birch Owned by:
Priority: major Milestone: 1.3
Component: core Version: 1.2.6
Keywords: Cc:
Blocking: Blocked by:

Description

The following HTML page should show one textbox. Instead it shows two. This has been tested in IE6, FF3 and Chrome.

<html>

<head> <script type="text/javascript" src="/jquery-1.2.6.js"></script> <script type="text/javascript">

$(document).ready(function() {

elements = $("div > *"); elements.wrap("span");

}); </script> </head> <body>

<div class='Box'> <form>

<label for='repeat'>Repeat</label> <span>

<input id='repeat' type='text' value='Box1' />

</span>

</div> </form>

</body> </html>

Change History

comment:1 Changed 5 years ago by Julian-Birch

Sorry, the html was slightly incorrect.

<div class='Box'> <form> should, of course, have read <form> <div class='Box'>

In fact, once the correction to the test case is made, it shows 4 text boxes...

comment:2 Changed 5 years ago by Julian-Birch

Sorry, this ticket is incorrect. Please close.

comment:3 Changed 4 years ago by dmethvin

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

Closed per your request.

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.