Add support for HTML5's <menu> (contextmenu)

By design Issue #9404393

Details

Author
Simeon V.
Created
Oct 18, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
  • Chrome
  • Safari
  • Opera
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Internet Explorer and Edge do not support the HTML5 context menu elements.

As a web developer, I want to create custom context menu entries in order to provide my users with advanced controls without having to completely disable the default context menu.

At the moment, if I want to give users custom context menus I have to listen for contextmenu events, call event.preventDefault() to prevent the default menu from appearing, and create a custom context menu in JS/HTML/CSS. Unfortunately, this prevents the user from leveraging any standard “right-click” behavior such as "View source", "Select all", or “Ask Cortana.” HTML 5’s context menu provides the best of both worlds: allow site-specific behaviors while preserving the user’s standard UI controls.

Relevant Specs

Additional Resources

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Brad E.”

      Changed Status to “By design”

    You need to sign in to your Microsoft account to add a comment.

    Sign in