Bug 264641

Summary: Update :link/:visited style when changing href
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: karlcow, ntim, webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=61697

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>