Dave Methvin schrieb:
>>> 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.
> 
>> Intertesting.  If I change your alert to
>> alert(e.target.tagName);
>> then I see STRONG.

Thats good to know. I'm thinking about if it is a good idea to normalize 
e.target for EOMB* and IE at all?

I could imagine that a few scripts (for example Interface) already rely 
on that not being normalized...

If not, I think that should be done.


> I am guessing that FF must treat a <strong> tag like a styled span, which
> makes sense. Also notice that if you click to the right of the link, the
> alert shows HTMLParagraphElement.

I'll have a look at that. Uh, I'm tired of reading Specs :)

* Every Other Modern Browser


-- Klaus

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to