We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd7a89c commit a07762dCopy full SHA for a07762d
js/jquery.mobile.buttonMarkup.js
@@ -90,7 +90,11 @@ $.fn.buttonMarkup = function( options ) {
90
buttonText.appendChild( e.firstChild );
91
}
92
93
- e.appendChild( buttonInner );
+ // XXX It seems like IE8 doesn't allow placing DOM elements within
94
+ // inputs; which may not be a bad thing.
95
+ if (!( el.length == 1 && el[0].tagName == 'INPUT' )) {
96
+ e.appendChild( buttonInner );
97
+ }
98
99
// TODO obviously it would be nice to pull this element out instead of
100
// retrieving it from the DOM again, but this change is much less obtrusive
0 commit comments