Skip to content

Missing attribute changed steps for dialog can cause assertions to be hit #10953

Open
@lukewarlow

Description

@lukewarlow

What is the issue with the HTML Standard?

Currently showModal() and show() on a dialog, assert that the dialog isn't in document's open dialogs list.

However, it turns out this isn't always true.

For example if you do:
dialog.showModal(); // Adds the dialog to the open dialogs list
dialog.removeAttribute('open'); // Dialog is now in a strange state
dialog.showModal(); // Assertion fails because the dialog is already in the open dialogs list

The spec needs attribute changed steps for dialog open attribute being removed and needs to remove the dialog from the list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions