Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#1087 closed bug (fixed)

prependTo/appendTo on select elements

Reported by: rdrousies Owned by:
Priority: critical Milestone: 1.1.3
Component: core Version: 1.1.2
Keywords: Cc:
Blocked by: Blocking:

Description

It seems using prependTo or appendTo on select elements only move the content of the <select>. The following example demonstrates that. (tested on firefox 2.0.0.2 - linux)

         <script type="text/javascript">

             $(document).ready(function() {

                        $('p').appendTo("#foo");
                        $('select').appendTo("#foo");


                     });

         </script>


         <p><span>span</span></p>
         <div id="bar"><select><option>BLEH</option></select></div>
         <div id="foo"></div>

That results in:

<div id="bar"><select></select></div>
<div id="foo"><p><span>span</span></p><option>BLEH></option></div>

Change History (2)

comment:1 Changed 13 years ago by john

need: ReviewTest Case
Priority: minorcritical

comment:2 Changed 13 years ago by brandon

Resolution: fixed
Status: newclosed

The select element has a length property and bailing out in jQuery.clean.

Fixed + test in Rev. [1784].

Note: See TracTickets for help on using tickets.