Closed Bug 1265909 Opened 8 years ago Closed 8 years ago

FireFox 45.0.2 fires onMouseOut for disabled input.

Categories

(Core :: DOM: Events, defect)

45 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: whansen, Unassigned)

Details

(Keywords: dev-doc-complete, site-compat)

Attachments

(2 files)

370 bytes, text/html
Details
343 bytes, text/html
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:45.0) Gecko/20100101 Firefox/45.0
Build ID: 20160407164938

Steps to reproduce:

Sample HTML:
<input type="image" src="images/hint.png" id="Hint" disabled='disabled'
     onclick="hint()"
     onmousedown="changeButton('Hint','down')"
     onmouseup="changeButton('Hint','on')"
     onmouseout="changeButton('Hint','on')" 
     alt="Hint"
     title="Display a hint for this question."/>

Function changeButton changes the button source. "on" also turns off disabled; "off" also turns on disabled.


Actual results:

Button is initially disabled as desired.  onmousedown and onmouseup are disabled, but onmouseout gets fired.


Expected results:

onmouseout should not fire.  IE, Opera, and Chrome work as desired, as did FireFox until this release.
Component: Untriaged → DOM: Events
Product: Firefox → Core
Could you attach a testcase, please.
Flags: needinfo?(whansen)
Attached file testcase
Flags: needinfo?(whansen)
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
(In reply to Loic from comment #1)
> Could you attach a testcase, please.

<!DOCTYPE HTML>
<html lang="en">
<head>
</head>
<body> 
<br/><br/>
<input type="button" src="images/hint.png" id="Hint" disabled="disabled"
     onmousedown="alert('Down')"
     onmouseup="alert('Up')"
     onmouseout="alert('Out')" 
     value="Hint"
     title="Display a hint for this question."/>
<br/><br/>
</body>
</html>
Attached file onoutTest.html
test case.  disable works for onmousedown and onmouseup, but not for onmouseover
Bill, did you see the developers notes for 44?
https://developer.mozilla.org/en-US/Firefox/Releases/44

"The events mouseover, mouseout, mouseenter, mouseleave, pointermove, pointerover, pointerout, pointerenter and pointerleave are now triggered for disabled form elements (bug 218093)."
Forgot to document it on FxSiteCompat.com. Will catch up.
You need to log in before you can comment on or make changes to this bug.