W3C home > Mailing lists > Public > public-html@w3.org > April 2012

[Bug 16816] New: menuitem click and menu show events do not indicate what element triggered these events

From: <bugzilla@jessica.w3.org>
Date: Sat, 21 Apr 2012 20:56:44 +0000
To: public-html@w3.org
Message-ID: <bug-16816-2495@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16816

           Summary: menuitem click and menu show events do not indicate
                    what element triggered these events
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: LC1 HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: bugzilla.w3c@signpostmarv.name
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


I'm noticing that the properties provided via the click event on a menuitem
element and the show event on a menu element do not indicate what element was
interacted with in order to trigger a context menu to be used. Consequently,
one has to use a workaround by adding a listener to the contextmenu event- this
does not appear to the most graceful solution.

For an implementation of this workaround, see http://pastebin.com/7kS8tu2W

My preferred solution would be a property on both events that indicates the
element that triggered the context menu to appear.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Tuesday, 24 April 2012 14:30:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:48 GMT