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

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 the QA contact for the bug.

Received on Saturday, 21 April 2012 20:56:42 UTC