-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Define an optional value and use it for setting dialog returnValue #11280
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
base: main
Are you sure you want to change the base?
Conversation
Define a new 'optional value' for buttons and submit inputs, this is used instead of 'value' when setting a dialog's returnValue.
@annevk hopefully this is roughly what you had in mind? |
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.
I had forgotten about this, but this looks like an improvement over the status quo.
Add submit button check. ought to be used*
a54c9f8
to
cadc51c
Compare
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.
Modulo Infra-alignment this looks good. Thanks for tackling it!
<p>The element's <span data-x="concept-fe-optional-value">optional value</span> is the value of | ||
the element's <code data-x="attr-button-value">value</code> attribute, if there is one, or null | ||
otherwise.</p> |
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.
<p>The element's <span data-x="concept-fe-optional-value">optional value</span> is the value of | |
the element's <code data-x="attr-button-value">value</code> attribute, if there is one, or null | |
otherwise.</p> | |
<p>The element's <span data-x="concept-fe-optional-value">optional value</span> is the value of | |
the element's <code data-x="attr-button-value">value</code> attribute, if there is one; otherwise | |
null.</p> |
data-x="attr-button-value">value</code> attribute, if there is one, or the empty string otherwise. | ||
The element's <span data-x="concept-fe-optional-value">optional value</span> is the value of the | ||
element's <code data-x="attr-button-value">value</code> attribute, if there is one, or null | ||
otherwise.</p> |
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.
data-x="attr-button-value">value</code> attribute, if there is one, or the empty string otherwise. | |
The element's <span data-x="concept-fe-optional-value">optional value</span> is the value of the | |
element's <code data-x="attr-button-value">value</code> attribute, if there is one, or null | |
otherwise.</p> | |
data-x="attr-button-value">value</code> attribute, if there is one; otherwise the empty string. | |
The element's <span data-x="concept-fe-optional-value">optional value</span> is the value of the | |
element's <code data-x="attr-button-value">value</code> attribute, if there is one; otherwise | |
null.</p> |
Define a new 'optional value' for buttons and submit inputs, this is used instead of 'value' when setting a dialog's returnValue.
Fixes #11092
(See WHATWG Working Mode: Changes for more details.)
/form-control-infrastructure.html ( diff )
/form-elements.html ( diff )
/input.html ( diff )
/interactive-elements.html ( diff )