-
Notifications
You must be signed in to change notification settings - Fork 22.6k
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
Fix inconsistencies in "HTML attribute: step" doc #31872
Conversation
Fix a typo in the **min impact on step** section where the default `step` value is said to be `0` instead of `1`.
Preview URLs (comment last updated: 2024-01-26 13:28:49) |
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.
Hi @nwhittaker, and thanks for your contribution to MDN!
Your change is correct, but I also wondered if you fancied correcting the example description, starting with the following line:
Then define an input with a minimum value of 7.2, omitting the step attribute, wherein it defaults to 1.
This is an incorrect description of the code below, as step
is not omitted; it is set to 2
. And the min value set is 1.2
, not 7.2
.
Also, the text starting Valid values include...
is not accurate — it says number values with decimals are invalid, which is nonsense. If you try the live example, 1.2
, etc. do not show as invalid. If you try a value like a
, the red border is immediately shown.
Let me know what you think.
@chrisdavidmills, happy to roll in other changes.
I think this is a straightforward enough change.
The author does say even numbers with a I also don't get what is meant by, I'll take a stab at rewording some of this, but interested in any feedback you may have regarding specific wording you'd like to see. |
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.
@nwhittaker your changes look great, thanks!
I've also made a commit to the branch to do a bit of text cleaning and restructuring in other places; after reviewing your changes I kept noticing other things, and couldn't leave it alone ;-)
I'll leave it like this for now, so that you can chime in if there is anything else you'd like to update, and the system can regenerate the preview link so I can test it and make sure my changes work.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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'll leave it like this for now, so that you can chime in if there is anything else you'd like to update…
@chrisdavidmills, all looks good to me -- thanks for the help!
Perfect, thanks again @nwhittaker! |
Description
Fixes a typo in the min impact on step section where the default
step
value is said to be0
instead of1
.Motivation
Otherwise the doc is inconsistent with what it claims the default
step
value to be.Additional details
Related issues and pull requests