Page MenuHomePhabricator

tablesorter: nested table in table header
Closed, ResolvedPublic

Description

The tr with a th element from a nested table in a th element of a sortable table gets moved to the outer table:

{| class="wikitable sortable"

-

! THEAD1

-

!
{|

-

! THEAD2

}
-
TBODY
}

is converted to

<table class="wikitable sortable jquery-tablesorter">
<thead>

<tr>
 <th class="headerSort" title="Aufsteigend sortieren">THEAD1</th>
</tr>
<tr>
 <th>
  <table>
   <tbody>
   </tbody>
  </table>
 </th>
</tr>
<tr>
 <th>THEAD2</th>
</tr>

</thead>
<tbody>

<tr>
 <td>TBODY</td>
</tr>

</tbody>
<tfoot></tfoot>
</table>

expeced result:

<table class="wikitable sortable jquery-tablesorter">
<thead>

<tr>
 <th class="headerSort" title="Aufsteigend sortieren">THEAD1</th>
</tr>
<tr>
 <th>
  <table>
   <tbody>
    <tr>
     <th>THEAD2</th>
    </tr>
   </tbody>
  </table>
 </th>
</tr>

</thead>
<tbody>

<tr>
 <td>TBODY</td>
</tr>

</tbody>
</table>


Version: unspecified
Severity: minor

Details

Reference
bz32049

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:00 AM
bzimport set Reference to bz32049.

Can you confirm if this bug still exists on trunk as of r101417 ? I'm guessing it's fixed.

I can't find any problems with nested tables anymore.

Fixed with r101417 and r101420.