jquery/jquery-mobile — Issue #3454: addBackBtn setting styles as link.
Author: MarkHamby
Created: 2012-01-18 20:32:50+00:00
State: open

(Using JQM latest of 2011-01-18. Not sure if issue was present with 1.0, but I believe it was not.)

Anchors now require 'data-role="button"' to be styled as a button. This causes two problems. I've searched documentation, forums, and bug reports for a solution; but I cannot find one. (Caveat: I could add my own back buttons to each page.)

1. When using $.mobile.page.prototype.options.addBackBtn = true, the Back button is a link, not a button.
2. Many of the examples in the documentation are incorrect, i.e. they do not include the 'data-role="button"' in anchors.

My recommendations:

1. Show auto-generated back buttons as buttons, not links.
2. Add $.mobile.page.prototype.options.linksAreButtons (or similar) to enable the old anchor behavior that does not require 'data-role="button"'.