Closed
Bug 1265909
Opened 9 years ago
Closed 9 years ago
FireFox 45.0.2 fires onMouseOut for disabled input.
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: whansen, Unassigned)
Details
(Keywords: dev-doc-complete, site-compat)
Attachments
(2 files)
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.
Updated•9 years ago
|
Component: Untriaged → DOM: Events
Keywords: regression,
regressionwindow-wanted
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 9 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>
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)."
Comment 7•9 years ago
|
||
Forgot to document it on FxSiteCompat.com. Will catch up.
Comment 8•9 years ago
|
||
Keywords: dev-doc-complete,
site-compat
You need to log in
before you can comment on or make changes to this bug.
Description
•