[jQuery] Dom manipulation with frames leaking divs

[jQuery] Dom manipulation with frames leaking divs


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>