Closed Bug 303361 Opened 20 years ago Closed 20 years ago

<menulist> object contains wrong implementation of "disabled" attribute

Categories

(Core :: XUL, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: marek, Unassigned)

References

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl-PL; rv:1.7.10) Gecko/20050717 Firefox/1.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl-PL; rv:1.7.10) Gecko/20050717 Firefox/1.0.6 "disabled" is implemented in wrong way: onget="return this.hasAttribute('disabled');" - this implementation means that if attribute "disabled" is defined but is empty or with value "false", property "disabled" will always return true. Proper implementation should be as below: onget="return this.getAttribute('disabled') == 'true';" Reproducible: Always Steps to Reproduce: 1.xul: <menulist id="test" disabled="false"/> 2.js: var list = document.getElementById("test"); alert(list.disabled) 3. Actual Results: returns true Expected Results: should return false
This has been fixed on the trunk by bug 286079. Fix will be in Firefox 1.5.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Depends on: 286079
OS: Windows XP → All
Hardware: PC → All
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.