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)

27 Branch
defect
Not set
normal

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.
Component: Untriaged → DOM: Core & HTML
Keywords: testcase
Product: Firefox → Core
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
Keywords: regression
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.