Closed Bug 281380 Opened 20 years ago Closed 20 years ago

disabled="disabled" is ignored for <input type="submit" />

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 140732

People

(Reporter: christophefouquet, Assigned: bugzilla)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

ASP.net set the disabled="disabled" for an <input> when the button is disabled.
FireFox ignores this and the button is rendered and active instead of being
disabled.
IE properly grays out the button when the "disabled" attribute is set to "disabled"

Reproducible: Always

Steps to Reproduce:
1. Make a page with <input type="submit" disabled="disabled" />
2.
3.

Actual Results:  
Button is still active (not greyed out)

Expected Results:  
Button should be grayed out and inactive
Attached file test case
WFM - Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050206
Firefox/1.0+

Did you clear the browser cache to make sure that Firefox was not displaying an
old version of the page?
I found the reason!!!
If there is a style defined for the button then it seems to take precedence
over the disabled="disabled". this is why the button seems to be active. The
behavior is different is IE. Open the attached file in FireFox and then IE.
The button IS disabled. Click on it and the form will not be submitted. If you
want to style it different when it is disabled, you can:

input[disabled]
{
    /* ... */
}

*** This bug has been marked as a duplicate of 140732 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: