Skip to content

Command invokers: missing documentation for value attribute to pass arguments #42808

@mkrause

Description

@mkrause

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button

What specific section or headline is this issue about?

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#command

What information was incorrect, unhelpful, or incomplete?

The close and request-close commands support using the value attribute on the <button> in order to pass a returnValue argument to the close() and requestClose() methods, respectively.

For example:

<button commandfor="my-dialog" command="request-close" value"my-return-value">Request close</button>

This capability is currently not documented.

What did you expect to see?

Documention for the value attribute in combination with command invokers.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:HTMLHypertext Markup Language docsneeds triageTriage needed by staff and/or partners. Automatically applied when an issue is opened.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions