handleEvent DOM API breakage

David Faure faure at kde.org
Sun Oct 19 02:33:56 CEST 2003


On Sunday 19 October 2003 01:25, Darin Adler wrote:
> > Conclusion: <body onload> (and probably onunload) really appears to be 
> > treated as a special case, as if it was an event on the window instead 
> > of one on the body. Other events, though, should be treated as coming 
> > from the body.
> 
> You are proposing that we match WinIE and not Mozilla. That sounds OK 
> to me; WinIE is the de-facto standard.

Actually my own preference would be to set 'this' to 'body' in all cases,
since this is an event on the body element. But this would only make sense
if there was no web page out there yet. For compatibility reasons I think 
we have to set it to window at least for onload/onunload.

> But usually in cases like this where the browsers disagree and we don't 
> have examples of specific web pages that require one or the other, I 
> like to check with some experts too. I'd like to ask people on the 
> Mozilla team like Doug Baron how they decided what to do what they did 
> and ask notable DOM experts like Peter-Paul Koch what they think.

This sounds like an excellent plan. Please keep us informed.
Thanks,
David.

-- 
David FAURE, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).


More information about the Khtml-devel mailing list