[js table sort] use lower cased tag names since HTML is case insensitive and XHTML is case sensitive and wants lower case tag names
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 02 Nov 2011 10:37:04 +0100
changeset 8043 c699f6edd067
parent 8042 27ab1649bd71
child 8045 c81d6f57ae9a
[js table sort] use lower cased tag names since HTML is case insensitive and XHTML is case sensitive and wants lower case tag names
web/data/jquery.tablesorter.js
--- a/web/data/jquery.tablesorter.js	Wed Nov 02 10:33:50 2011 +0100
+++ b/web/data/jquery.tablesorter.js	Wed Nov 02 10:37:04 2011 +0100
@@ -422,8 +422,8 @@
             function computeTableHeaderCellIndexes(t) {
                 var matrix = [];
                 var lookup = {};
-                var thead = t.getElementsByTagName('THEAD')[0];
-                var trs = thead.getElementsByTagName('TR');
+                var thead = t.getElementsByTagName('thead')[0];
+                var trs = thead.getElementsByTagName('tr');
 
                 for (var i = 0; i < trs.length; i++) {
                     var cells = trs[i].cells;