tried to insert a span inside the button... same bug
<div class="ui-block-b"><button name="action" id="btnForgot" value="forgot" type="submit" data-theme="c">I forgot my <span>login<span></button></div>
again, it does return the span object with the changed text, and if i mouse over it, it does highlights the area it was supposed to occupy wth the changed text... but the old text is still rendered on the screen.
now, that raises another question... is it desirable that i try to submit a patch to listen to enhanced buttons for attributes/content change and reflect that on the resulting markup (whatever it is) or that is so by design?
i can't wrap my head on the fact that if in the future someone wants, i don't know, shadows besides round corners... he will add yet another span around my buttons and then i will have to add three steps to change content/attribute... Or am i failing to see something obvious here?
I can't really answer you on that. I'm not part of the developer team under the jquerymobile proyect.
I believe that it will be interesting to submit a patch to "refresh" the button values. You'll have to caontact with the approipiate people to comment on it ans submit it.
To answer your second question. So far jquerymobiles replaces the button by a structure that holds a span with the 'fake' button and the original button hidden. I somebody wrapps any tag around your button, the position of the text tag will be on the same position relative to the button so you don't have to worry about that.
Hope it helps you
Antonio Alonso R & D Software Engineer Embarcadero Technologies
Leave a comment on gcbzzz's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic