Static role attributes might be okay; WAI-ARIA examples do so and assistive technologies usually rely on JS.