W3C home > Mailing lists > Public > www-svg@w3.org > December 2005

SVGT 1.2: "evt" vs "event" as the implicit event argument to event handlers

From: Maciej Stachowiak <mjs@apple.com>
Date: Wed, 28 Dec 2005 02:02:53 -0700
Message-Id: <5EA9AE66-2DE0-43C9-9C3A-5400FF860D0E@apple.com>
To: www-svg@w3c.org


SVG Tiny 1.2 calls for handler element bodies to implicitly create a  
function with a paramater named "evt" for the event. SVG Full 1.1 did  
the same for event handler attributes. However, the longstanding  
universal practice of (X)HTML UAs is to name this parameter "event".  
It seems like it will be terribly confusing in a CDF enviornment for  
SVG event handlers to name this parameter "evt" and for other  
languages to use "event", especially since many major browsers are  
now implementing HTML+SVG. There does not seem to be any advantage to  
"evt".

I recommend renaming this parameter from "evt" to "event". This would  
break compatibility with SVG 1.1 but the alternative is ongoing  
confusion for content authors. Another option is to require both  
"evt" and "event" parameters but deprecate "evt".

Regards,
Maciej
Received on Wednesday, 28 December 2005 09:03:30 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:32 GMT