W3C home > Mailing lists > Public > public-webapi@w3.org > March 2006

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

From: Jonas Sicking <jonas@sicking.cc>
Date: Sat, 18 Mar 2006 16:02:56 -0800
Message-ID: <441C9FB0.9050503@sicking.cc>
To: Bjoern Hoehrmann <derhoermi@gmx.net>, Web APIs WG <public-webapi@w3.org>

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:20 UTC