Bug 245937 - SUMMARY element: click() for invisible SUMMARY should toggle DETAILS element.
Summary: SUMMARY element: click() for invisible SUMMARY should toggle DETAILS element.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-10-01 17:11 PDT by Ahmad Saleem
Modified: 2022-10-22 01:01 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 2022-10-01 17:11:26 PDT
Hi Team,

This is going to be another Blink Merge of below commit:

https://chromium.googlesource.com/chromium/src.git/+/c162ebcbfa71bfbdd8e3fdba2137c382f752b4b2

Webkit GitHub Source - https://github.com/WebKit/WebKit/blob/833c22ec9c71357ef42a80896dd2cedcdbdc66f6/Source/WebCore/html/HTMLSummaryElement.cpp#L117

Test Case Failing - https://jsfiddle.net/ubyfk7qm/show

____

I will try to see, if I can make it happen, in case if it does not work, at least - now we will have bug with failing test case to fix.

Thanks!
Comment 1 EWS 2022-10-02 07:28:32 PDT
Committed 255073@main (19b515f06053): <https://commits.webkit.org/255073@main>

Reviewed commits have been landed. Closing PR #4908 and removing active labels.
Comment 2 Radar WebKit Bug Importer 2022-10-02 07:29:18 PDT
<rdar://problem/100673432>
Comment 3 Ahmad Saleem 2022-10-22 01:01:27 PDT
Just to update - this also led to "https://wpt.fyi/results/html/semantics/interactive-elements/the-summary-element/anchor-without-link.html?label=master&label=experimental&aligned&view=subtest&q=the-summary-element"

sub-test - "clicking on anchor without link, with embedded inline element should open details and not navigate." as PASS. So I'll take it. :-)