Bug 227847 - :link and :visited pseudo-class selectors should not match <link> elements
Summary: :link and :visited pseudo-class selectors should not match <link> elements
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL: https://drafts.csswg.org/selectors/#t...
Keywords: InRadar
: 220740 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-07-09 16:58 PDT by Chris Dumez
Modified: 2022-08-19 15:02 PDT (History)
8 users (show)

See Also:


Attachments
Patch (6.78 KB, patch)
2021-07-09 17:02 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (17.89 KB, patch)
2021-07-09 19:52 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2021-07-09 16:58:06 PDT
:link and :visited pseudo-class selectors should not match <link> elements, only <a> and <area> elements.

This is causing some subtests to fail in WebKit on:
- http://wpt.live/dom/nodes/ParentNode-querySelector-All.html

Those subtests are passing in both Blink and Gecko.
Comment 1 Chris Dumez 2021-07-09 17:02:20 PDT
Created attachment 433247 [details]
Patch
Comment 2 Chris Dumez 2021-07-09 19:52:45 PDT
Created attachment 433253 [details]
Patch
Comment 3 EWS 2021-07-11 21:08:53 PDT
Committed r279818 (239579@main): <https://commits.webkit.org/239579@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 433253 [details].
Comment 4 Radar WebKit Bug Importer 2021-07-11 21:09:22 PDT
<rdar://problem/80446777>
Comment 5 Ryosuke Niwa 2022-08-19 15:02:09 PDT
*** Bug 220740 has been marked as a duplicate of this bug. ***