[whatwg] Suggestion for HTML5 context menus

On Sat, Oct 22, 2011 at 3:48 PM, Eric Sh. <shedokan1 at gmail.com> wrote:
> I was trying out the HTML5 context menu in firefox and I saw that there is
> no way(in the specs) to create an empty menu with only selected context menu
> items in it.
>
> So for example if I have an image element and I want to create a context
> menu with the items: "Rotate" and "Share" - I have to ask the browser to
> "Add" them to the regular context menu along with the ten other items that
> are already there.
> This makes a bulky context menu when I only need those two items and it is
> especially hurtful for user experience if the context menu is close to the
> bottom of the screen and is moved above the mouse cursor.
>
> I suggest adding a way to ask the browser to create a brand new context menu
> with only those items.

I filed http://www.w3.org/Bugs/Public/show_bug.cgi?id=12999 on this a
while ago. So far no changes to the spec though.

We added support for this in firefox, so you can get the behavior you
want there in the meantime (I forget what we called the attribute
though).

/ Jonas

Received on Saturday, 22 October 2011 16:35:28 UTC