-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Updating button as part of a wider piece of work #5764
Conversation
Preview URLs
FlawsNote! 1 document with no flaws that don't need to be listed. 🎉 URL:
External URLsURL: No new external URLs URL: No new external URLs |
Thanks for asking, @rachelandrew ! The input element is a bit of a nightmare to document. I think since I filed that issue things have changed a bit. In particular in mdn/sprints#2308, Estelle did a ton of work on the input element page and it makes more sense now. In particular we have https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attributes which gives a table with all the Then for types that support "special" attributes that not all types support (for example, So this seems pretty usable actually. From a user perspective, I guess what they most want to see, for each type, is a single list of all attributes relevant to that type. So ideally it should include all the "common" attributes like Perhaps as a fairly simple improvement we could:
We should also I think get rid of that "Supported common attributes" row in the table, since that would be covered by an "Attributes" section. If we wanted to go further we could also list the common attributes in "Attributes", but the problem then is all the duplication, so if we did that it would be much better to link to a separate page for each attribute. (I think as a general principle it makes sense to treat input types as distinct elements.) But that opens another can of worms, which is whether we should have separate pages for these attributes. We actually do have separate pages for some of them but not all: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes - but lists like the one in https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attributes act as of these pages don't exist. I think maybe it would be better to have separate pages for each attribute, then just link to the page from each type page. (the drawback with that is of we want to include type-specific info of course). I'm not sure how helpful any of this is! |
It’s not clear what this PR is waiting on |
I am going to work on #2611 and just wanted to check I'm doing the right thing here, so I updated the text above the table on the input element page, and then updated type="button" to add an Attributes section.
I also noted that in these type pages we have live examples using divs not headings so I can fix that while I'm in there.
cc: @wbamberg who raised the initial issue. If we are happy with the approach I can rattle through and do the others.