Re: HTML4 and XHTML events module clarification request (was: Onclick event issue with different mouse buttons)

Hi, Phillipe

> > I would like to ask for some comments on an issue regarding DOM Level 2
> > mouse events that is being discussed on the bugzilla system of the
Mozilla
> > webbrowser:
> >
> > http://bugzilla.mozilla.org/show_bug.cgi?id=71705
> >
> > To summarize, the question is: should the "click" event fire when the
user
> > (on a Windows platform, for example) presses the Right mouse button to
> > activate the browser "context menu"?
>
> The current opinion is yes. The HTML4 idea was that the handler did the
filtering
> (left, right, center, ...).

I think it is useful to have this in the mouseclick events (up, down). But
insisting on "onclick" breaks an enormous amount of "dom 0" pages out there.
(Aside from being unworkable, since the DOM2 mouseevent button codes are
from right to left, instead of indicating the default platform action,
select/click or options/context menu.)

The current implementation of IE doesn't fire onclick for a contextmenu/RMB
mouseclick, and instead exposes the specific event using "oncontextmenu". I
think this is a sound idea.

> This needs to be clarified in the HTML4 and XHTML events module
specification. In
> any
> case, the resolution of this issue is outside the scope of the DOM
specification.

Doesn't the DOM specify the event model for HTML?
If this is not the right place to discuss this, what is?

Thanks,
-TT

Received on Wednesday, 11 April 2001 14:28:52 UTC