In html5 menus, use callback to compute disabled state to support dynami...

...cly adding/removing disabled attribute.