Huge Memory Leak in Internet Explorer ?

Discussion in 'Javascript' started by jonjon, Feb 12, 2004.

  1. jonjon

    jonjon Guest

    Hi,
    I was testing the following code in Internet Explorer version
    "6.0.2800.1106.xpsp2.030422-1633" and came accross a huge memory leak as IE
    took more than 300MB memory on my 512MB system. Is it a known bug ? after
    some tests it only happens if there already is one or more styles in the
    document's stylesheet...
    Can you confirm it is happenning to you too or is it only my system which
    for some reason produces this error ? I was able to reproduce this issue on
    a friends system whose IE's version number was
    "6.0.2800.1106.xpclient.010817-1148".
    Here is the whole page:

    ---- BEGINNING OF THE WEB PAGE ----------------------------------------

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="javascript">
    function doAction() {
    document.styleSheets[0].addRule('h2 {font: 8px Verdana}')
    }
    </script>

    <style type="text/css">
    <!--
    ..dummy1 {
    font-family: "Courier New", Courier, mono;
    }
    -->
    </style>
    </head>

    <body>
    <div id="Layer1" style="position:absolute; left:98px; top:87px; width:393px;
    height:257px; z-index:1"></div>
    <input type="submit" name="Submit" value="Submit" onClick="doAction();">
    <h2>Test Layer !</h2>
    </body>
    </html>

    ---- END OF THE WEB PAGE ----------------------------------------

    Best regards,

    John.
     
    jonjon, Feb 12, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ronen
    Replies:
    1
    Views:
    483
    Patrick Olurotimi Ige
    Feb 3, 2005
  2. Replies:
    3
    Views:
    522
  3. Replies:
    1
    Views:
    168
  4. Replies:
    0
    Views:
    139
  5. Archimedes Trajano

    Changing IFrame Src Leak in Internet Explorer

    Archimedes Trajano, Dec 9, 2008, in forum: Javascript
    Replies:
    1
    Views:
    627
    Henry
    Dec 10, 2008
Loading...

Share This Page