id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,blocking,blockedby
11049,submit can not be stopped in ie when bubbling,yiminghe,dmethvin,"1. input the following html:


{{{
<html>
    <head>
    </head>
<body>
<div id='t'>
    <form id='f'>
        <input type='submit' id='s'/>
    </form>
</div>


<script src='jquery-1.7.1.js'></script>

<script>
    $(function(){
        var ret=[];
        
        $(""#t"").on(""submit"",function(e){
            e.preventDefault();
            e.stopPropagation();
        });
        
        // trigger jquery's submit hack
        $('#s')[0].click();
        
        setTimeout(function(){        
           $(""#t"").on(""submit"",function(e){
                ret.push(1);
                e.preventDefault();
                e.stopPropagation();
            });
            
            $(""#f"").on(""submit"",function(e){
                e.preventDefault();
                e.stopPropagation();
            });
            
            $('#s')[0].click();
            
            setTimeout(function(){
                alert(ret.length==0);
            },100);
        },100);
    });
</script>
</body>
</html>
}}}

2. run it in ie

expected : alert(true)

actual result : alert(false)

PS : Maybe event ""change"" in ie has the same problem,i will check it later.
PS2 : I try to fix this bug in KISSY (which learned a lot from jquery),hope it is feasible for jquery too.

1. place event ""submit"" fix hander as the last handler always :

https://github.com/kissyteam/kissy/blob/4bacd0b1364435fd49a6c393a2bcbdf9f560eea3/src/event/submit.js#L47

https://github.com/kissyteam/kissy/blob/4bacd0b1364435fd49a6c393a2bcbdf9f560eea3/src/event/add.js#L135

2. do nothing in submit fix handler if user called stopPropagation in his handler:

https://github.com/kissyteam/kissy/blob/4bacd0b1364435fd49a6c393a2bcbdf9f560eea3/src/event/submit.js#L57

After above fixes the result is fine :

http://docs.kissyui.com/kissy/src/event/tests/submit-bubble/jq_bug_fix.html",bug,closed,high,None,event,1.7.1,fixed,,,,
