Take a look at the simple example below.  The following divs are
reported as leaked by Drip --  <div>div<div></div>.  These divs are
not from my code but I did notice them in a function called "clean" in
jquery core.js

file1.htm >> src:

<frameset rows="*" framespacing="0" border="false" frameborder="0">
                <frame src="frame.htm" frameborder="0">
</frameset>


frame.htm >> src:

<html>
        <script language="javascript" src="jquery-1.2.3.min.js"></script>
        <script>
                $(document).ready(function(){
                });

                function leak(){
                        $("#mydiv").append(":leak ");
                }

                function noleak(){
                        var text = document.createTextNode(':noleak ');
                        $("#mydiv").append(text);
                }
        </script>
        <body >
                <div id="mydiv">should be appended here</div><br/>
                <a href="#" onclick="leak();">leak</a><br/>
                <a href="#" onclick="noleak();">noleak</a><br/>
        </body>
</html>
>>

This will leak one set of divs (2 divs) each time you click the leak
link.  The noleak link does not leak anything.  This issue only occurs
when the source is inside a frameset.  In my application this scenario
is actually causing all nodes of large dynamically built tables to
leak.  When the page is served without the frameset there are no
leaks.  Does anyone have any idea what's going on in this example?

Reply via email to