This project is archived and is in readonly mode.

#845 ✓resolved

HtmlTable.Sort on IE

Reported by Tonchi | February 9th, 2010 @ 05:31 PM

First of all, thank for all the job in the past years on mootools.

For the past days I have been working in a little application that uses a lot of js and until a day ago I realize that HtmlTable.sort isn't workin on ie (a requirement for the application), more precisely, it was handling all the columns as if they where Strings, after a few tries I realize that in the part when mootools tries to guess the type of data in the cell it checks if it is IE (trident) and if it is the case it return false.

After a little bit of debuggin I get to the conclusion that in the method detectParsers if we remove the line:

if (Browser.Engine.trident) return false;

And also we change the line:

var text = rows[i].cells[index].get('html').clean();

For this:

var text = $(rows[i].cells[index]).get('html').clean();

All the magic will be done and sort will also work on IE

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket