Last modified: 2011-11-03 20:34:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T34049, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32049 - tablesorter: nested table in table header
tablesorter: nested table in table header
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
unspecified
All All
: Normal minor (vote)
: 1.18.0 release
Assigned To: Krinkle
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-30 08:54 UTC by Fomafix
Modified: 2011-11-03 20:34 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Fomafix 2011-10-30 08:54:12 UTC
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>
Comment 1 Krinkle 2011-10-31 22:13:19 UTC
Can you confirm if this bug still exists on trunk as of r101417 ? I'm guessing it's fixed.
Comment 2 Fomafix 2011-11-01 20:56:38 UTC
I can't find any problems with nested tables anymore.

Fixed with r101417 and r101420.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links