This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 10595 - contextmenu event should be a MouseEvent
Summary: contextmenu event should be a MouseEvent
Status: CLOSED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://dev.w3.org/html5/spec/interact...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-09 23:27 UTC by Adrian Bateman [MSFT]
Modified: 2010-10-04 14:46 UTC (History)
4 users (show)

See Also:


Attachments

Description Adrian Bateman [MSFT] 2010-09-09 23:27:44 UTC
Summary:
The HTML 5 specification declares that a "contextmenu" event should be fired as a "simple" event. However, several websites rely on the mouse coordinate positions returned by the contextmenu event object in IE8, and Firefox treats the event as a "MouseEvent" object. For interoperability with existing browsers and site-compatibility concerns, we recommend that the "contextmenu" event be a MouseEvent.

Existing text:
"When an element's context menu is requested (e.g. by the user right-clicking the element, or pressing a context menu key), the UA must fire a simple event named contextmenu that bubbles and is cancelable at the element for which the menu was requested." (4.11.4.3 Context menus)

Proposed text:
"When an element's context menu is requested (e.g. by the user right-clicking the element, or pressing a context menu key), the UA must fire a MouseEvent named contextmenu that bubbles and is cancelable at the element for which the menu was requested."
Comment 1 Ian 'Hixie' Hickson 2010-09-26 18:25:34 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: The proposed text wouldn't work, as it doesn't define what the MouseEvent attributes' values should be, but I've done something similar.
Comment 2 contributor 2010-09-26 18:26:16 UTC
Checked in as WHATWG revision r5516.
Check-in comment: Make contextmenu into a MouseEvent.
http://html5.org/tools/web-apps-tracker?from=5515&to=5516
Comment 3 Adrian Bateman [MSFT] 2010-09-30 17:00:04 UTC
Thanks.