Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If supported - there are currently no browser that support the <menu>
nor the <command>
nor the contextmenu attribute - the Contextual links module should definitely use them.
We can even start using them and provide graceful degration; shouldn't be too hard.
Comments
Comment #1
casey CreditAttribution: casey commentedHmm, it is possible that user agents will only implement support for applications (using application role or something).
Comment #2
Everett Zufelt CreditAttribution: Everett Zufelt commented@Casey
I think new screen-readers will support these elements by switching into forms mode (would need to test). But, the support won't go back very far, so we will need an accessible fallback for screen-readers without this support.
Comment #3
casey CreditAttribution: casey commented#1184718: Wrap page in application role as soon as administrative controls are added
Comment #4
casey CreditAttribution: casey commentedFF8 is going to support it: https://developer.mozilla.org/en/Firefox_8_for_developers
Comment #5
mgiffordSubscribe.
Comment #6
mgiffordCan someone put together a patch for this?
Comment #7
mgiffordMarking this as postponed because we're not sure what need this is filling. Also, would want to watch use case via http://caniuse.com/
Note: This is a quick summary from the A11ySprint.
Comment #8
Wim LeersCan somebody explain what this is about exactly?
Comment #9
dcrocks CreditAttribution: dcrocks commentedThe menu element was meant to represent a list of commands, and still has very little support. See:
html5 menu element
Comment #10
Wim LeersHm, indeed: http://caniuse.com/menu. I'd never heard about this before :)
That means this is definitely D9 material.
Comment #10.0
Wim Leersadded
tags
Comment #11
catchNow potentially 8.x minor release material.
Comment #12
mgiffordThanks for correcting this @catch.
Comment #13
mgiffordComment #14
nod_Since we need a fallback
Comment #21
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer and at Annertech commentedThis was an experimental technology that didn't pan out. Firefox and Edge had some partial support for the
<menu>
element, but it has been removed as of the HTML 5.2 recommendation. If it had matured it may have been useful for contextual links module and dropbuttons.Comment #22
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer and at Annertech commentedfixing accessibility tag