Closed
Bug 1176695
Opened 10 years ago
Closed 10 years ago
querySelector(":hover") not working anymore in Firefox 36..41a
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: just.wondering.why, Unassigned)
References
()
Details
(Keywords: testcase)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
Build ID: 20140212131424
Steps to reproduce:
1. Create simple HTML file:
<img src="https://mozorg.cdn.mozilla.net/media/img/firefox/new/header-firefox.98d0a02c957f.png">
<script>
function ev(e)
{
a = document.querySelector(":hover");
alert(a);
}
window.onkeydown = ev;
</script>
2. Hover on image and press any key on keyboard.
Actual results:
null - in Firefox from 36 to 41 alpha
Expected results:
[object HTMLImageElement] - in Firefox 35 and 35.0.1.
Regression range:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=f74ad36bb97b&tochange=44168a7af20d
Maybe bug 839838.
But it works with this demo: http://jsfiddle.net/kncrdfzz/1/
Comment 2•10 years ago
|
||
I got a different range:
Pushlog:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=76fc2a130baa&tochange=24ad66bc6c2b
Triggered by: Bug 783213
So, I think this is by design.
Blocks: 783213
Keywords: regression
Updated•10 years ago
|
Keywords: regression
Comment 3•10 years ago
|
||
Yep. Putting the document in standards mode gives the right behavior (though of course then the querySelector call returns the <html> element, which is also hovered).
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•