In html5 menus, use callback to compute disabled state to support dynamicly adding/removing disabled attribute.