jquery.tablesorter: Only look at th's for headers
authorDerk-Jan Hartman <hartman.wiki@gmail.com>
Thu, 7 Aug 2014 08:37:43 +0000 (09:37 +0100)
committerDerk-Jan Hartman <hartman.wiki@gmail.com>
Thu, 7 Aug 2014 15:53:04 +0000 (16:53 +0100)
commitd2947d5e163002e6a92f4b08c268becb0b19f197
tree97fe96ce00e182c6abe64bb71234b353f30468d2
parent37630e3fc61a0c6ede43ca3535a52b37c83e595d
jquery.tablesorter: Only look at th's for headers

If there would be td cells inside the thead, then these would be
counted too for longest header row. This was not possible in wikitext,
but was possible in MediaWiki tables.
And $.unique sets fields to undefined instead of deleting them, which
causes a nasty tough to spot counting mistake (which was even known
due to a testcase having a comment confirming that the count was off)

Bug: 53527
Change-Id: Ie551cd62275dd80560643131d68435166732d367
resources/src/jquery/jquery.tablesorter.js
tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js