Bug 228618 - Clicking an HTMLLinkElement should not trigger a navigation
Summary: Clicking an HTMLLinkElement should not trigger a navigation
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL: https://html.spec.whatwg.org/multipag...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-07-29 16:07 PDT by Chris Dumez
Modified: 2021-07-30 09:42 PDT (History)
9 users (show)

See Also:


Attachments
Patch (11.70 KB, patch)
2021-07-29 16:10 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-29 16:07:02 PDT
Clicking an HTMLLinkElement should not trigger a navigation because HTMLLinkElement has no activation behavior as per the HTML specification:
- https://html.spec.whatwg.org/multipage/semantics.html#htmllinkelement

Firefox and Chrome follow the specification here.
Comment 1 Chris Dumez 2021-07-29 16:10:44 PDT
Created attachment 434583 [details]
Patch
Comment 2 EWS 2021-07-30 09:41:46 PDT
Committed r280479 (240114@main): <https://commits.webkit.org/240114@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 434583 [details].
Comment 3 Radar WebKit Bug Importer 2021-07-30 09:42:18 PDT
<rdar://problem/81329671>