-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
appendToTable doesn't work correctly in IE9 #75
Comments
The latest version of tablesorter doesn't append to the table tody directly any more. It appends to a document fragment, then once all rows have been added back, it adds the rows back to the table. It makes everything much faster. Try the sort event demo (with 1022 rows) in IE to see. |
Hi, By the way, there is another bug in the latest tablesorter - if there is a On Tue, May 22, 2012 at 2:45 PM, Rob G <
|
I'm not seeing an issue with IE9 other than it being very slow. I'm working on improvements to hopefully speed up IE's but I'm starting to wonder if you really do have the latest version of tablesorter.... I've also responded to your other ticket about colspan errors, which I'm not seeing either. And was there a link to a file you wanted to share? |
Is this still an issue? |
Hi Rob, I almost thought that everything is good, but if the table is When I put the appendChild inside the loop the problem goes away. I also don't see any performance issue with it so I need to run it that way to support IE9. |
I just ran the sort events demo in IE9 for longer than I cared to do it and I didn't have any issues with the layout... Honestly, this sounds to me like the table isn't formatted correctly. Are all of the TR's, TD's and TH's closed correctly? Try running the page through the validator service to see if there are any problems. |
Tbodies are now detached before being manipulated. Hopefully, it has fixed any issues that might be occurring in IE. crosses fingers |
The problem:
Chrome and FF work fine. But in IE9, whenever appendToTable runs (ie. sorting), the table comes out messed up - sometimes ghost cells are inserted and the whole row gets shifted. I have seen this on larger tables with around 150 rows and about 20 columns. If the table is small, it seems to work fine.
The problem is with added the entire rowset to the tbody:
table.tBodies[k].appendChild(f);
When done inline, like in previous versions, it works perfectly:
for (j = 0; j < l; j++) {
table.tBodies[k].appendChild(r[pos][j]);
}
No doubt, IE is still the buggiest browser.
The text was updated successfully, but these errors were encountered: