Bug 218758 - Click on <a href> nested in <summary> cross browser inconsistency
Summary: Click on <a href> nested in <summary> cross browser inconsistency
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: sideshowbarker
URL:
Keywords: InRadar
Depends on:
Blocks: 252223
  Show dependency treegraph
 
Reported: 2020-11-10 09:13 PST by Zach Leatherman
Modified: 2023-08-31 02:28 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zach Leatherman 2020-11-10 09:13:50 PST
Clicking a link that’s nested inside of a summary element has an odd HTML-only inconsistency.

<details>
  <summary><a href="https://www.zachleat.com/">Works in Safari</a></summary>
</details>

<details>
  <summary><a href="https://www.zachleat.com/"><span>Does not work in Safari</span></a></summary>
</details>

Tested in Safari 14. Both cases work in Firefox 82 and Chrome 86. All csaes tested on macOS Catalina (10.15.7)

Live demo: https://codepen.io/zachleat/pen/ZEOMKPr


As an additional disclosure some conversation about this specific issue is being had here: https://github.com/whatwg/html/issues/2272
Comment 1 Simon Pieters (:zcorpan) 2020-11-10 10:09:38 PST
The spec issue is not the same as this issue, though related. (The spec issue is about whether interactive content in <summary> should be valid in HTML.)
Comment 2 Smoley 2020-11-10 16:07:26 PST
Thanks for filing. I can reproduce this on Safari 13.1.3 as well as 14.1 using the provided codepen.
Comment 3 Radar WebKit Bug Importer 2020-11-10 16:07:36 PST
<rdar://problem/71259555>
Comment 4 sideshowbarker 2023-08-26 09:24:51 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17106
Comment 5 sideshowbarker 2023-08-29 05:28:24 PDT
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/41687
Comment 6 EWS 2023-08-31 02:28:18 PDT
Committed 267491@main (aed2f1dba4a4): <https://commits.webkit.org/267491@main>

Reviewed commits have been landed. Closing PR #17106 and removing active labels.