-
Notifications
You must be signed in to change notification settings - Fork 46
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
HTML: Re-use existing attribute names for similar concepts #281
Comments
( |
Ooooh good point. This should be mentioned as an antipattern. |
This came up in w3ctag/design-reviews#599 Context: The proposal introduced an |
@LeaVerou will make a go of writing a PR for this. |
* Add HTML section, add attribute re-use subsection Related to #281 * Fix section id
* Add HTML section, add attribute re-use subsection Related to #281 * Fix section id
New elements should try to re-use existing attribute names for similar concepts.
Examples:
multiple
attribute is used in both<select>
and<input type=file>
open
attribute was introduced in<details>
and re-used for<dialog>
for
attribute is used in both<label>
and<output>
(I did not include the numerous cases of the same attribute being used across multiple elements for the same thing, e.g.
src
ortype
)The text was updated successfully, but these errors were encountered: