Bug 9737 - Quirks Mode: :hover should only apply to links, images, forms
Summary: Quirks Mode: :hover should only apply to links, images, forms
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 418.x
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://www.laneneave.co.nz/
Keywords: HasReduction
: 13527 15269 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-05 01:59 PDT by Mark Rowe (bdash)
Modified: 2022-07-24 07:07 PDT (History)
10 users (show)

See Also:


Attachments
Reduced test case demonstrating the problem (390 bytes, text/html)
2006-07-05 02:03 PDT, Mark Rowe (bdash)
no flags Details
Same reduction with a doctype added to demonstrate the Firefox quirksmode behaviour (403 bytes, text/html)
2006-07-05 02:09 PDT, Mark Rowe (bdash)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Rowe (bdash) 2006-07-05 01:59:11 PDT
Steps to reproduce:
1) Visit http://www.laneneave.co.nz/.
2) Move the mouse cursor over the body text of the page.

Expected result:
No change.

Observed result:
Text is underlined.

Other comments:
Firefox doesn't display the underline.
Comment 1 Mark Rowe (bdash) 2006-07-05 02:03:31 PDT
Created attachment 9203 [details]
Reduced test case demonstrating the problem
Comment 2 Mark Rowe (bdash) 2006-07-05 02:08:05 PDT
Firefox has a quirk that limits the application of :hover psuedoclass to links, images, and form controls, unless the selector includes tag names, ids, or attributes.  This is documented at http://developer.mozilla.org/en/docs/Mozilla_Quirks_Mode_Behavior (last item under Miscellaneous & Style), and is related to bug https://bugzilla.mozilla.org/show_bug.cgi?id=96984.

I've noticed this issue on a few occasions in the past, so I think it would be worthwhile adopting a similar quirks-mode behaviour if practical.
Comment 3 Mark Rowe (bdash) 2006-07-05 02:09:17 PDT
Created attachment 9204 [details]
Same reduction with a doctype added to demonstrate the Firefox quirksmode behaviour
Comment 4 Mark Rowe (bdash) 2007-04-28 06:59:19 PDT
*** Bug 13527 has been marked as a duplicate of this bug. ***
Comment 5 Mark Rowe (bdash) 2007-09-24 23:54:39 PDT
*** Bug 15269 has been marked as a duplicate of this bug. ***
Comment 6 Simon Pieters (:zcorpan) 2012-08-16 03:30:04 PDT
AFAICT this is fixed in webkit now, but only for links, which matches Opera/IE/spec.
http://dvcs.w3.org/hg/quirks-mode/raw-file/tip/Overview.html#the-:active-and-:hover-quirk
Comment 7 Ahmad Saleem 2022-07-24 04:00:18 PDT
I am not able to reproduce this bug in Safari 15.6 on macOS 12.5 using attached test case (Reduced test case demonstrating..), it shows "underline" while hovering on both lines across all other browsers (Chrome Canary 106 and Firefox Nightly 104) matching current Safari behavior. It is also confirmed in Comment 06.

I think this can be marked as "RESOLVED INVALID" since Safari didn't change the behaviour but Firefox did. Thanks!
Comment 8 zalan 2022-07-24 07:07:47 PDT
Thank you!