FireFox 45.0.2 fires onMouseOut for disabled input.

RESOLVED INVALID

Status

()

defect
RESOLVED INVALID
3 years ago
3 years ago

People

(Reporter: whansen, Unassigned)

Tracking

({dev-doc-complete, site-compat})

45 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

370 bytes, text/html
Details
343 bytes, text/html
Details
Reporter

Description

3 years ago
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

Comment 1

3 years ago
Could you attach a testcase, please.
Flags: needinfo?(whansen)

Comment 2

3 years ago
Posted file testcase
Flags: needinfo?(whansen)

Updated

3 years ago
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
Reporter

Comment 4

3 years ago
(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>
Reporter

Comment 5

3 years ago
Posted file onoutTest.html
test case.  disable works for onmousedown and onmouseup, but not for onmouseover

Comment 6

3 years ago
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.