Bug 227847

Summary: :link and :visited pseudo-class selectors should not match <link> elements
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: CSSAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: changseok, d, esprehn+autocc, ews-watchlist, gyuyoung.kim, koivisto, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://drafts.csswg.org/selectors/#the-any-link-pseudo
Attachments:
Description Flags
Patch
none
Patch none

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. ***