if (elementDetails != null) {
SpanAttributes attributes = new SpanAttributes();
// Should only render out a surrounding span
// element if the device supports it.
if (shortcutProps.supportsSpan()) {
// Create span attributes from the menu's
// attributes. There are two mechanisms used
// here to support real css and the css
// emulation provided by MCS. The style class
// VE-... is used for devices that support css