Mislav Marohnic' ha scritto:
> On 5/28/07, *Hantarex* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
>     can someone argue how do deal with the whole mess?
>
>
> As best we can :) in the event branch of course
Started checking functional tests on the event branch and found a FF2 
bug with this test:

<div id="capture1"><p id="capture2"><strong>Event capture</strong> test 
(unsupported in IE!)</p></div>

<script type="text/javascript">
$('capture1').observe('click', function(e){
alert('outer event fired');
$('capture2').failed('Event capture failed')
log(e)
}, true)
$('capture2').observe('click', function(e){
alert('inner event fired');
el = $('capture2')
if (el.className) el.passed()
else el.failed('Event capture failed')
log(e)
})
</script>

I've added a couple of alerts to better understand what's going on here.

With FF2 Just click somewhere on "Event capture" part of the string to 
see that the inner event is not fired at all.
Just click on "test (unsupported in IE!)" or remove the <strong> tag to 
see that everything is fine.

So seems that nested tags cause problems with event capturing in FF2.

Opera 9 is ok.
On FF3a4 this bug seems solved.


Then, event.js code in branch is not #7435 as I believed...
should I consider that ticket as a newer release candidate and try a 
merge with trunk locally to check?

Alessandro










--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to