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)
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•8 years ago
|
Component: Untriaged → DOM: Events
Keywords: regression,
regressionwindow-wanted
Product: Firefox → Core
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=01e37977f8da2e1f8b9ce9b777e556ffb1437960&tochange=e8c7dfe727cd970e2c3294934e2927b14143c205 See bug 218093 comment 45.
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>
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•8 years ago
|
||
Forgot to document it on FxSiteCompat.com. Will catch up.
Comment 8•8 years ago
|
||
https://www.fxsitecompat.com/en-CA/docs/2016/disabled-form-controls-now-trigger-mouseover-and-similar-mouse-events/
Keywords: dev-doc-complete,
site-compat
You need to log in
before you can comment on or make changes to this bug.
Description
•