Closed Bug 35319 Opened 25 years ago Closed 25 years ago

button.getAttribute('disabled') returns no value

Categories

(Core :: DOM: Core & HTML, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: myk, Assigned: jst)

Details

(Whiteboard: [nsbeta2+])

Attachments

(1 file)

Overview Description: The DOM method "getAttribute," when used on a BUTTON element to retrieve the value of the BUTTON's attribute "disabled," returns nothing. For example, given a button like this: <button id="foo">Foo</button> The following statement returns an empty dialog box instead of a dialog box with the word "false": alert(document.getElementById('foo').getAttribute('disabled')); To reproduce, load test case and click on second big button. Actual Results: empty dialog box Expected Results: dialog box with the word "false" in it Build Date & Platform Bug Found: Linux 2000-04-09-09 Additional Builds and Platforms Tested On: none
Attached file test case
QA Contact: gerardok → ckritzer
reproduced on Mac, win98 and win2k. setting OS and platform to All as I believe this to be a cross-platform bug, though testing on further OS and platforms would be helpful
OS: Linux → All
Hardware: PC → All
nominating for nsbeta2 based on: - visibility - feature (DOM Level 1 Standards Compliance) broken
Keywords: nsbeta2
[nsbeta2+]
Whiteboard: [nsbeta2+]
Status: NEW → ASSIGNED
Target Milestone: --- → M16
IMO mozilla did the right thing as far as the DOM Level 1 & 2 specs go, but we broke compatibility with other browsers. This is now fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Marking VERIFED FIXED on: - MacOS9 2000-05-23-12-M16 Commercial Build - Linux6 2000-05-23-10-M16 Commercial Build - Win95 2000-05-23-10-M16 Commercial Build
Status: RESOLVED → VERIFIED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: