#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 16 years ago by
need: | Review → Test Case |
---|---|
Priority: | minor → critical |
comment:2 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
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.
It can be confirmed here as well: http://beta.missionincrease.org/active/append_bug.cfm