jquery/jquery-mobile — Issue #3141: Prevent data-role="button" from double enhancing buttons or inputs
Author: toddparker
Created: 2011-11-22 22:21:04+00:00
State: open

If you add data-role="button" to a button or input type=button/submit/etc. which is automatically enhanced, the script will add the button markup twice: wrapping the input and also injecting the button markup inside the input.

```

```

Even though this is incorrect markup, we should put in a check to see if there is duplication between the role and auto-init and not apply the markup enhancements twice in this scenario to make this fool-proof.