W3C home > Mailing lists > Public > www-html@w3.org > April 2001

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

From: Taras Tielkes <t.r.tiekes@chello.nl>
Date: Wed, 11 Apr 2001 20:29:43 +0200
Message-ID: <005401c0c2b5$6109df80$0200a8c0@taras>
To: <www-html@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:48 GMT