Bug 285242

Summary: Close the dialog element when the open attribute is removed
Product: WebKit Reporter: Joey Arhar <jarhar>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Joey Arhar
Reported 2024-12-30 09:43:13 PST
When the <dialog> element is open and has the open attribute set, removing the open attribute via script should also run the dialog closing steps. https://github.com/whatwg/html/pull/10124
Attachments
Radar WebKit Bug Importer
Comment 1 2025-01-06 09:44:14 PST
Ryosuke Niwa
Comment 2 2025-03-20 00:04:39 PDT
Why are we adding a feature that we're then discouraging authors to use: https://html.spec.whatwg.org/multipage/interactive-elements.html#note-dialog-remove-open-attribute
Note You need to log in before you can comment on or make changes to this bug.