Bug Tracker

Opened 11 years ago

Closed 11 years ago

#3233 closed bug (invalid)

Appending and Prepending in table doesn't work in Firefox

Reported by: jeverling Owned by:
Priority: major Milestone: 1.3
Component: core Version: 1.2.6
Keywords: Firefox table appendTo prependTo Cc:
Blocked by: Blocking:

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.

Change History (1)

comment:1 Changed 11 years ago by flesler

Resolution: invalid
Status: newclosed

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.