Skip to main content

Bug Tracker

Side navigation

Ticket #5821: repro.html
File repro.html, 1.1 KB (added by korchev, January 15, 2010 01:59PM UTC)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
    </head>
    <body>
        <div id="outer" style="padding:100px;background:blue" class="test">
            Outer DIV
            <div id="inner" style="background:red" class="test">
                Inner DIV
            </div>
        <div>
        
        <script type="text/javascript">
        $(function(){
            $('.test')
                .live('mouseenter', function() {
                    $('<div/>')
                        .text("entering " + this.id)
                        .appendTo(document.body);
                })
                .live('mouseleave', function() {
                    $('<div/>')
                        .text("leaving " + this.id)
                        .appendTo(document.body);
                })
        });
       </script>
    </body>
</html>

Download in other formats:

Original Format