#1242: Other Spec Review: HTML menu elements

Visit on Github

Opened Jul 1, 2026

Specification

https://whatpr.org/html/12011/interactive-elements.html#the-menubar-element from https://github.com/whatwg/html/pull/12011 although some aspects are a bit out of date relative to the explainer, which is more current

Explainer

https://open-ui.org/components/menu.explainer/

Links

  • Previous early design review, if any: none
  • An introduction to the feature, aimed at unfamiliar audiences: https://open-ui.org/components/menu.explainer/#introduction
  • A description of the problems that end-users were facing before this proposal: Menus on web sites often work in inconsistent ways and often in ways that do not serve the needs of users who depend on the keyboard or on assistive technology.
  • Alternatives considered: See the "General questions" section of the explainer and its many subsections.
  • Examples of how to use the proposal to solve the end-users' problems: https://open-ui.org/components/menu.explainer/#examples--code-snippets
  • What do the end-users experience with this proposal: Hopefully users will experience menus on the web that have more consistent patterns between sites in terms of supporting the same (and good) mouse behaviors, keyboard navigation and focus behavior, and exposure to assistive technology, and other accessibility characteristics.
  • User research you did to validate the problem and/or design, if any: none (though there were some points in the process where we did research about patterns used on existing sites to answer specific design questions, but I'd need to dig around to find it)
  • Web Platform Tests: https://wpt.fyi/results/html/semantics/menu/

The specification

Where and by whom is the work is being done?

Also cc: other contributors @domfarolino @scottaohara @lukewarlow @josepharhar @mfreed7 @davidsgrogan

Feedback so far

You should also know that...

No response

<!-- Content below this is maintained by @w3c-tag-bot -->

Track conversations at https://tag-github-bot.w3.org/gh/w3ctag/design-reviews/1242

Discussions

Log in to see TAG-private discussions.

Discussed Jun 29, 2026 (See Github)

Matthew & Christian added.

Comment by @domfarolino Jul 1, 2026 (See Github)

Note that https://github.com/WebKit/standards-positions/issues/580 and https://github.com/mozilla/standards-positions/issues/1317 have already been filed.

Discussed Jul 6, 2026 (See Github)

Christian: Proposal to bring traditional desktop-app-style menus to the web. You can do some of this with HTML but it's super complicated. I think it's appealing because it's a real problem that developers need to solve. The explainer has many open questions that need to be resolved, so I'm not exactly sure what the review request is. I wantt to ask that, so we can carry on. First impression is the use case is valid.

Matthew: What's the web compat story about re-using <menu> (noting their reasoning on this). +1 to Christian asking what the bounds of the review are.

Luke: Sometimes there are questions in the OpenUI explainers that aren't questions that need to be answered. The framing can be: here's the thought process that lead to these answers. If TAG has feedback on some of the open questions that'd be valuable. There are some genuinely still open questions. If WHATWG like a certain approach then it'll be considered, but they're open to suggestions.

Luke: I suspect the webcompat situation is more serious than it may seem. Develoeprs may've been using it quite a bit. Maybe TAG could write something about using elements not for the semantic purpose they were intended? I think <menubar> is good.

Marcos: Agree with Matthew in case that sites can benefit from any existing semantics... worth investigating re-using/fixing the existing one if possible. Was surprsied to see new elements.

Luke: I think the existing semantics are quite different as is the CSS. So you'd need an attribute opt-in.

Lola: Sounds like Christian and Matthew doing more investigation, and we have surfaced some questions about why not use the current <menu> - can you draft an intiial comment?

Christian: Yes. Good use case, why don't you use <menu>, and what's the scope of the review.

Lola: Can definitely see the need and benefit of this process.

Luke: Earlier, there was talk about the concept of a navigation menu, with links as opposed to menu items. This was not looked upon favourably. Keyboard focus management, popovers, etc. issues. There's a separate proposal for site navigation 'menus' that may involve the <nav> element with an attribute - we should bear things in mind when considering this one.

Comment by @christianliebel Jul 10, 2026 (See Github)

@dbaron Thanks for bringing this to us! We haven’t done a deeper review yet. At first glance, this looks good. The use case is common and real.

Two questions came up so far:

  1. What’s the scope of the review you’re looking for? The explainer still lists a number of open questions. Are you looking for the TAG’s input on resolving those, or at the design as it’s currently specified?
  2. Why not build on the existing <menu> element rather than introducing new elements? We’d like to understand the reasoning here, including the web-compatibility considerations around reusing (or extending) what’s already there.

Thank you!

Comment by @dbaron Jul 10, 2026 (See Github)
  1. What’s the scope of the review you’re looking for? The explainer still lists a number of open questions. Are you looking for the TAG’s input on resolving those, or at the design as it’s currently specified?

I think mostly on the design as currently specified. The explainer has definitely been a living document over the course of the development of this feature. A few weeks ago I attempted to edit the explainer to try to document the settled status of many of the things discussed there, but it's entirely possible I missed some things. (I think I also intentionally left some things in an unsettled state because we might want to do them in later revisions even if they're not happening as part of what we hope to initially ship.)

(That said, I plan to land some edits (already half written) to the explainer (hopefully) today to respond to https://github.com/whatwg/html/issues/11729#issuecomment-4923664859 as discussed in https://github.com/openui/open-ui/issues/1189#issuecomment-4928386129 -- though I'm not particularly interested in even more input on that issue as it's already gotten quite a bit.)

  1. Why not build on the existing <menu> element rather than introducing new elements? We’d like to understand the reasoning here, including the web-compatibility considerations around reusing (or extending) what’s already there.

There's some prior discussion of this in https://open-ui.org/components/menu.explainer/#why-not-reuse-the-menu-element and https://github.com/openui/open-ui/issues/1194 but I think the short answer is that changing the behavior of something that's been part of HTML for >30 years adds a lot of risk to the project. I also recall @scottaohara saying something specific about the implications on existing behavior of ATs for <menu> although I don't remember the details.