This is a useful article, despite the writer's language disclaimers. 
However, the table laying out "Differences in the event object 
properties/methods" between IE and Mozilla describes the means of 
identifing "[t]he element which fired the event" as

----begin quote----
he same, but in Mozilla the nodes of type text can also fire events, so 
to keep things working you'll need to climb up the tree until you find a 
element's (tag's) node:

var node = e.srcElement;
while(node.nodeType != node.ELEMENT_NODE)
        node = node.parentNode;
----end quote----

However, the specification at

http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html

calls the attribute "[u]sed to indicate the EventTarget to which the 
event was originally dispatched" the "target," and indeed in the latest 
build of Mozilla (2002100508 under Windows ME--don't know how far back 
this goes) event.srcElement returns "undefined," while event.target 
works as expected, at least in my small experiments.

Otherwise, Sr. Lichtmaier is to be commended and thanked for his work.

Leland

Nicol�s Lichtmaier wrote:
> I've written a small article to provide info to web developers who want 
> to make their pages compatible with Mozilla. It focus in JavaScript 
> compatibility problems (which are usually the worst kind, since they 
> make pages/web-applications unuseable with Moz).
> 
> I've originally written it in Spanish, made Google translate it to 
> English and cleaned up the translation afterwards. It has surely lots of 
> language errors (and perhaps a couple of facts wrong, who knows? =) ).
> 
> Perhaps somebody can make some comments about my doc, and probably link 
> to it from some Mozilla doc/evangelism place (If the article deserves 
> that, of course).
> 
> The doc is at: 
> <http://mazinger.technisys.com.ar/pruebas-nick/mozilla/docs/compat.html>
> 
> I's served with content negtotiation, so that the ES and EN version 
> share the same URL. The direct URL to the english version is at 
> <http://mazinger.technisys.com.ar/pruebas-nick/mozilla/docs/compat.html.en>. 
> 
> 
> Thanks!
> 


Reply via email to