Bug 264641 - Update :link/:visited style when changing href
Summary: Update :link/:visited style when changing href
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2023-11-10 15:46 PST by Ahmad Saleem
Modified: 2024-03-26 14:49 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2023-11-10 15:46:26 PST
Hi Team,

While going through Blink's commit, I came across another failing test case:

Test Case: https://jsfiddle.net/neqv0rfs/

^ Red square in STP182 but 'Green' in Chrome Canary 121 and Firefox Nightly 121.

Blink Commit: https://chromium.googlesource.com/chromium/blink/+/bda06cb3d802ea18369a5757b51a2822712a0b90

Just wanted to raise so we can fix it.

Thanks!
Comment 1 Ahmad Saleem 2023-11-10 15:48:14 PST
https://searchfox.org/wubkat/source/Source/WebCore/html/HTMLAnchorElement.cpp#239

Here in 'HTMLAnchorElement::attributeChanged', we call following at start of function:

HTMLElement::attributeChanged(name, oldValue, newValue, attributeModificationReason);

Should it be done also at end of function?
Comment 2 Radar WebKit Bug Importer 2023-11-17 15:47:13 PST
<rdar://problem/118583589>