Bug Tracker

Custom Query (13852 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (70 - 72 of 13852)

Ticket Resolution Summary Owner Reporter
#13450 cantfix "no element found" in Firefox when $.post reply has no Content-Type [email protected] [email protected]
Description

Press Ctrl+Shift+K in Mozilla Firefox to bring up the developer console. Don't use F12 in Firebug.

<?php

function main() {
?>
<script src="jquery-1.9.0.js"></script>
<input type="button" id="moo" value="meow">
<script>
$('#moo').on('click', function() {
  $.post('?op=test', { id: '2' });
});
</script>
<?php
}

function meow() {
  header('Content-Type:');
}

switch($_GET['op']) {
  case "test":
    meow();
    break;
  default:
    main();
    break;
}

?>

You will notice the console say "no element found".

#13904 notabug "on" events leak memory in the checkContext variable [email protected] [email protected]
Description

I've created a small sample which shows how the "on" function can leak memory. This was tested in Chrome 26, looking at the Memory Heap. To reproduce:

1) Load this test page (I've not used jsFiddle as it has it's own leaks and confuses the situation).

<html>
<head>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
</head>
<body>

<div class="i_will_leak">
    <input type="text" />
</div>
<button>Leak</button>

<script>
    $(function () {

        $('div').on('click', 'input', function () {
            this.value = 'clicked';
        })
        
        $('button').click(function () {
            $('div').off().unbind().remove();
        })
    });
</script>
</body>
</html>

2) Click on the input box 3) Click the "Leak" button. This simply removes all events and trashes the element. (I've purposefully called all the removes I can think of, although remove() should suffice) 4) Check the memory profile for detached nodes and the "i_will_leak" DIV will have leaked against the checkContext variable.

NOTE: This ONLY happens if you actually click the input box, if you don't interact with it, then it doesn't leak. Hence the issue is in dispatching the event, rather than attaching or removing it.

Expected Result: It shouldn't leak

I hope this is enough information.

#12629 worksforme "on" not working on html class with Firefox 15.0.1, IE8, IE9 [email protected]
Description

This trigger works with jQuery 1.8.0, but non with 1.8.1 and 1.8.2.

$('.page').on({

mouseenter : function () {

$(this).addClass('hover');

}, mouseleave : function () {

$(this).removeClass('hover');

}

}, '.item');

Greetings!

Note: See TracQuery for help on using queries.