Skip to content

<dialog> Unclear method of altering/reading attributes #9044

Open
@jakearchibald

Description

@jakearchibald

https://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-show

Add an open attribute to the dialog element, whose value is the empty string.

The spec is unclear how this attribute is added. It should use https://dom.spec.whatwg.org/#concept-element-attributes-set-value, unless that isn't how the attribute should be added.

Other instances that should be linked:

Add an open attribute to subject, whose value is the empty string.

If the element already has an open attribute, then return.

If subject already has an open attribute, then throw an "InvalidStateError" DOMException.

Add an open attribute to subject, whose value is the empty string.

If isModal is true and subject has the autofocus attribute, then set control to subject.

If subject does not have an open attribute, then return.

Remove subject's open attribute.

If result is not null, then set the returnValue attribute to result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions