Title 1

Content 1

Title 2

Content 2

Title 3

Content 3

This bug happens in a very specific situation :

The page contains three titles and three blocks. The title's "onclick" collapse the block and switch the title's style. When collapsing the three blocks (1,2,3) and uncollapsing them (3,2,1), IE crash.

Here are the title styles :

          .blockTitle {
              display: inline;
              position: relative;
          }

          .closedBlockTitle {
              width: 50%;
              position: relative;
          }
      

Here is the javascript function :

          function showhideBlock(blockElementId, titleElementId) {
            var blockElement = document.getElementById(blockElementId);
            var titleElement = document.getElementById(titleElementId);

            if (titleElement.className=="closedBlockTitle") {
              blockElement.style.display="block";
              titleElement.className="blockTitle";
            } else  {
              blockElement.style.display="none";
              titleElement.className="closedBlockTitle";
            }
          }
      

Note : all css styles are important. If one is not present, IE does'nt crash.

Note : putting an "alert(...)" between the 2 javascript commands that update styles avoid the crash too.