If a listener for an event, e.g. onresize, is not installed, should it ("document.body.onresize") return null or undefined? Based on my checks, Firefox 3 and Opera 9.5 return undefined while IE 7 gives null.
Created attachment 22412 [details] patch to make unset listener returns undefined instead of null
Related khtml bug: http://bugs.kde.org/show_bug.cgi?id=166943
Created attachment 22413 [details] patch to make unset listener returns undefined instead of null
This commit removed - JSEventTargetNode.cpp, which this patch was trying to modify: https://github.com/WebKit/WebKit/commit/1292a4346f561b4490bbe1319c89fef428d746cf Is anything else needed here? Thanks!
All browsers return null in this case now.