Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#3037 closed bug (fixed)

Safari 3.1.1 $jq.remove() losing select options

Reported by: [email protected] Owned by: paul
Priority: critical Milestone: 1.5.2
Component: ui.core Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:


Below pasted from mailing list:

I've run into what looks to be a bug with Safari 3.1.1/jquery-ui-1.5. I have a select menu with options that is removed from the DOM and later re-inserted. If ui.core.js has been included, then the select menu loses one of its options each time it is removed. Below is some HTML that demonstrates the problem.


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

  - With the ui.core.js inclusion commented, the select menu will
  - include NORMAL and URGENT when you hit the 'Insert'.
  - Once you include ui.core.js, each time $target is
  - removed it loses one option from the select menu in Safari 3.1.1

<script type="text/javascript" src="ui.core.js"></script>

<script type="text/javascript">

  $(document).ready(function() {
      $target = $('#target').remove();

      $('#insert').click(function() {

      $('#remove').click(function() {


  <div id="target" style="display: none;">

      <select name="task_priority" id="task_priority">
        <option value="NORMAL">Normal</option>
        <option value="URGENT">Urgent</option>


    <div id="dest">
       <a id="insert" href="javascript: void(0);">Insert</a>
       <a id="remove" href="javascript: void(0);">Remove</a>


Change History (5)

comment:1 Changed 15 years ago by rdworth

Priority: majorcritical

comment:2 Changed 15 years ago by paul

Resolution: fixed
Status: newclosed

Fixed in r399.

comment:3 Changed 15 years ago by paul

Milestone: 1.5.2

comment:4 Changed 15 years ago by rdworth


comment:5 Changed 15 years ago by rdworth

Milestone: 1.6b1.5.2
Note: See TracTickets for help on using tickets.