A short prelude.
I'm developing a small checklist application, to study ruby/rails and to play with various Web 2.0 UI patterns. And to get a tool which will help me to organize all my todos.
Now the story.
The problem was that in IE the inserted HTML was rendered like a total mess. Elements were painted one upon another, lost their position, styles.
As I found out later, the page resize fixes the rendering.
So I had to force a repaint of the inserted elements to fix the rendering.
The solution was simple. All I had to do was to add a fake CSS class to the inserted element and remove it afterwards (in fact, there is no strict need to remove the class). This operation forces an element restyling in IE and fixes its rendering. Looks like a hack, and it is.
By the way, moving task list rendering from the server side to browser gave me performance gain of 200% on the server.