swisnl / jQuery-contextMenu

jQuery contextMenu plugin & polyfill
https://swisnl.github.io/jQuery-contextMenu/
MIT License
2.25k stars 746 forks source link

html5 submenus not working with polyfill #163

Open nicofrand opened 11 years ago

nicofrand commented 11 years ago

In this demo, with Chrome : http://medialize.github.io/jQuery-contextMenu/demo/html5-polyfill-firefox8.html, clicking on the checkbox will not prompt an alert.

By the way, the living standard also uses "menuitem" instead of "command" now : http://www.w3.org/html/wg/drafts/html/master/interactive-elements.html#declaring-a-context-menu (and a "popup" type instead of "context" but even Firefox does not respect that).

rodneyrehm commented 11 years ago

Interesting bug in Chrome. I'll look into it.

Yeah, the living standard also declares <menu> and context menus feature (“contextmenu” attribute) being at risk to be removed from the specification. Until this stabilizes, I don't see the point in changing any names.

nicofrand commented 11 years ago

Maybe should I also mention this does not close the menu ?

rodneyrehm commented 11 years ago

yes, I've quickly tested your report, hence the issue remained open and is marked as a bug.