Re: ISSUE-43: change to \"common baseline\"?

Bjoern Hoehrmann wrote:
> * Jonas Sicking wrote:
> 
>>Would it really break backwards compatibility for ECMA-script 
>>implementations to change onreadystatechange from being a Function to 
>>being an EventListener?
> 
> If you can tell the difference through black box testing then there is a
> chance that it breaks compatibility under some definition of the term.

True, but that also means that every feature you add can break 
compatibility. In theory the function could look something like this:

function myRSCHandler() {
   if (arguments.length == 0) {
     ..do something good..
   }
   else {
     ..do something bad..
   }
}

But that seems highly unlikly. The same argument would hold for pretty 
much any change, just change 'arguments.length == 0' to 
'document.addEventListenerNS' for example.

> I
> am not sure however what the implications of such a change would be. How
> would a user-defined Function provide the .handleEvent() method, for ex-
> ample?

I'm not sure I follow your question here?

/ Jonas

Received on Sunday, 19 March 2006 00:03:07 UTC