> From: Klaus Hartl > > I wanted to add the normalization for e.target as discussed > earlier. But I came across a strange bug in Firefox. Have a > look at the following page: > > http://stilbuero.de/demo/jquery/etarget.html > > If you click on the link the target of the click event > (attached to <p>) is alerted. In that case it is an <strong> > element, but Firefox reports an HTMLSpanElement. Safari is ok. > > Does anyone know what is going on?
Firefox has the correct <strong> element there, it's just the way it reports it when you do an alert. Forget the event handling for the moment and try these in the FireBug console: $('strong')[0] $('strong')[0].tagName alert( $('strong')[0] ) alert( $('strong')[0].tagName ) -Mike _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/