Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#7432 closed defect (wontfix)

Button: doesn't respect value of submit button in FF2 and FF3

Reported by: Bryan Forbes Owned by:
Priority: high Milestone: 1.2
Component: Dijit - Form Version: 1.1.1
Keywords: Cc:
Blocked By: Blocking:

Description

Using this markup:

<input type="submit" dojoType="dijit.form.Button" value="Login" />

Results in a button with no text on it in FF2 and FF3. It works fine in IE7. Changing the value attribute to a label attribute works fine in FF2 and FF3, but not in IE7. You end up having to do this to get it to work in all three browsers:

<input type="submit" dojoType="dijit.form.Button" value="Login" label="Login" />

This can cause inconsistency and dijit.form.Button should be changed to respect the value of the value attribute for FF2 and FF3.

Change History (2)

comment:1 Changed 11 years ago by bill

Resolution: wontfix
severity: majorminor
Status: newclosed
Summary: dijit.form.Button doesn't respect value of submit button in FF2 and FF3Button: doesn't respect value of submit button in FF2 and FF3

I can see how one would expect that markup to work, but I don't think it's feasible.

The Button widget is meant to be used in markup with the <button> tag, like this:

<button dojoType=dijit.form.Button type=submit value=foo>bar</button>

It works on all browsers and is degradable.

The "value" attribute for a <button> DOM node has a different meaning than for <input> DOM node. Only in the latter case does it become the label of the button. And the Button widget doesn't change it's behavior depending on whether it's declared programatically or in markup, or depending on whether the markup uses an <input> tag or a <button> tag.

comment:2 Changed 9 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.