I like the idea of the command element, but it doesn't seem to be supported in any (?) browser, well except IE9. But not in IE10. I'm curious why, is there any particular reason?
As far as I'm aware the command element isn't supported in any browser. Firefox 15-19 does support the menu tag http://caniuse.com/#search=command , but doesn't use the command element as the official HTML5 recommends http://www.w3.org/TR/html5/interactive-elements.html#the-menu-element
I am not seeing the command element supported in IE9. Did you see that somewhere? It isn't listed in the MSDN IE9 Guide for Developers document http://msdn.microsoft.com/en-us/ie/hh410106#_HTML5_Semantic_Elements
As for why it isn't implemented in browsers other than Firefox, I'm not sure why that is the case. Maybe browsers aren't quite ready to answer the menu element and the complexities of that and usability, accessibility, etc...
The good news is that you can use a Polyfill for menu and command by using the following library https://github.com/medialize/jQuery-contextMenu I've not used it myself, but it was listed on Modernizr's HTML5 Cross Browser Polyfills wiki https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With