Side navigation
#1087 closed bug (fixed)
Opened March 30, 2007 07:26PM UTC
Closed April 25, 2007 06:21PM UTC
Last modified June 21, 2007 03:27AM UTC
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)
#!xml <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:
#!xml <div id="bar"><select></select></div> <div id="foo"><p><span>span</span></p><option>BLEH></option></div>
Attachments (0)
Change History (2)
Changed April 04, 2007 08:11PM UTC by comment:1
need: | Review → Test Case |
---|---|
priority: | minor → critical |
Changed April 25, 2007 06:21PM UTC by comment:2
resolution: | → fixed |
---|---|
status: | new → closed |
The select element has a length property and bailing out in jQuery.clean.
Fixed + test in Rev. [1784].
It can be confirmed here as well:
http://beta.missionincrease.org/active/append_bug.cfm