Paul wrote:
> Richard Cornford wrote:
>> Elegie wrote:
>> <snip>
>>> [4] Instead of passing the handler directly, pass some object
>>> implementing the EventListener interface.
>>
>> That is very risky in javascript. The W3C ECMAScript bindings for the
>> EventListener interface effectively say that any _function_ is an
>> EventListener. ...
<snip>
> The OP mentioned he was developing a greasemonkey script for firefox.
Being able to disregard the applicable standard because the context of
application allows more is not reason for doing so in itself.
Richard.
|