jquery/jquery-mobile — Issue #2921: Toolbars cannot have custom icons on <buttton>
Author: askerb
Created: 2011-11-03 10:24:27+00:00
State: open

http://jsbin.com/ukewu3/181

If a button in a toolbar is defined with the tag instead of the anchor tag, you cannot set a custom icon on it.
Look at the "Using 3rd party icon sets" modified chat button/icon on:
http://jsbin.com/ukewu3/181

The custom icon relies on the id. When using a instead of , a new span is created and the button is hidden with class="ui-btn-hidden". The id remains with the button, not the new span, and so using css to change the icon using the id as suggested on the page won't work.