W3C home > Mailing lists > Public > www-svg@w3.org > September 2008

Re: [1.2T-LC] evt and event (ISSUE-2055)

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 24 Sep 2008 11:54:39 +1000
To: www-svg@w3.org
Message-ID: <20080924015439.GB1608@arc.mcc.id.au>

Cameron McCormack:
> Yes, we need to keep both 'evt' and 'event' working.

Some additional points of interest:

In Opera and Firefox, both 'evt' and 'event' are bound inside an SVG
event listener attribute (e.g. <rect onclick="…">), but only 'event' is
in HTML ones.

In Opera, 'event' is bound in an event listener registered with
addEventListener() even if the function was declared with no arguments
(this applies to SVG and HTML elements):

  <!DOCTYPE html>
  <span id='s'>click me</span>
      ('click', function() { alert(event) }, false);

and 'evt' isn’t bound.

In Firefox, neither 'event' or 'evt' are bound for listeners registered
with addEventListener().

Cameron McCormack ≝ http://mcc.id.au/
Received on Wednesday, 24 September 2008 01:55:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:15 UTC