-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add attribute changed steps to dialog element #10954
base: main
Are you sure you want to change the base?
Conversation
When the dialogs open attribute is removed: 1. Remove dialog from the document's open dialogs list. 2. Destroy and nullify dialog's close watcher This also adds an assertion to the start of 'set the dialog close watcher' that dialog's close watcher is null.
b33a63f
to
21886e7
Compare
This test would also pass if we removed the assert, i.e. fixed the regression introduced recently. Marking "do not merge yet" until we get more clarity in #10953 as to what the right path forward is. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing "do not merge yet" as I'm convinced by the arguments in #10953, but of course we still need to check all the boxes to merge.
For the tests box, could you point to more tests that enforce this behavior that aren't crash tests? Since assertions are actually comments; they don't cause crashes.
I've opened web-platform-tests/wpt#50393 which fails in a browser which follows the current spec:
|
Add attribute changed steps to dialog element
When the dialogs open attribute is removed:
This also adds an assertion to the start of
'set the dialog close watcher' that dialog's close watcher is null.
Fixes #10953
(See WHATWG Working Mode: Changes for more details.)
/interactive-elements.html ( diff )