Bug Tracker

Ticket #3233 (closed bug: invalid)

Opened 3 months ago

Last modified 3 months ago

Appending and Prepending in table doesn't work in Firefox

Reported by: jeverling Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.3 Component: core
Version: 1.2.6 Keywords: Firefox table appendTo prependTo
Cc: Needs: Review

Description

I have a table like this:

<table>
<tr id="t1">
<td style="width:150px;height:150px;background-color:red;">
</td>
</tr>
<tr id="t2">
<td style="width:150px;height:150px;background-color:green;">
</td>
</tr>
</table>

Now I want to do this:

$('#t1').appendTo('#t2');

This works. But in Firefox, #t1 is now located on the right hand side of #t2. In Internet Explorer everything works as expected (#t1 below #t2).

PrependTo? is the same.

I tried with jquery 1.2.6. Firefox is Version 3.0.1.

Attachments

Change History

Changed 3 months ago by flesler

  • status changed from new to closed
  • resolution set to invalid

You can't append a tr inside another tr, they must always be children of a table or tbody/thead.

Note: See TracTickets for help on using tickets.