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

Re: ACTION-70: Define the scope chain of onFoo events reference issue-1

From: Jim Ley <jim@jibbering.com>
Date: Tue, 14 Mar 2006 11:01:22 -0000
Message-ID: <009e01c64756$a174e530$2502a8c0@Snufkin>
To: "\"Web APIs WG \(public\)\"" <public-webapi@w3.org>

"Maciej Stachowiak" <mjs@apple.com>
>> 1) Event listeners can not (and I also believe should not) be  capable of 
>> changing by modification of element attributes
> With the following test case, Safari, Firefox and Opera respect the  DOM 
> change and reflect it with a changed event handler:

I believe this is inconsistent behaviour, and should be changed:

<script id=chicken>
function chicken() { alert(1); }


document.getElementById('chicken').firstChild.nodeValue="function chicken() 
{ alert(2); }"

does not result in a change to the script, so it is unclear to me why 
changing an attribute should be reflected in script.  Similarly with XML 
event handlers and changing the content - currently they do not get changed.

Inconsistency is very annoying for the author.


Received on Tuesday, 14 March 2006 12:57:47 UTC

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