Replies: 5 comments 2 replies
-
For additional info - this page ranks pretty high for sentiment usefulness (over 0.8) so I agree keeping it and making it even more useful sounds like a great idea. I also support this plan - it sounds good @estelle 👍 |
Beta Was this translation helpful? Give feedback.
-
Doesn't that mean it would not be part of the DL in this case, since you also said the DL should only list things actually in the subtree (which I completely agree)? |
Beta Was this translation helpful? Give feedback.
-
It is also helpful while inspecting codebase of a project to distinct custom attributes from the ones coming from pure HTML |
Beta Was this translation helpful? Give feedback.
-
From experience I could say that even deprecated attributes are worth knowing for example in markup for mail services which doesn't support a lot of common css properties |
Beta Was this translation helpful? Give feedback.
-
I have made a cross-reference table of all html elements vs all attributes for easy lookup in both directions. I am not sure whether this is helpful in this discussion or not, but I just wanted to share it just in case: https://docs.google.com/spreadsheets/d/17C2uGxFI_3y_6p-cl1OFyua6rtdcVsfwpnMsoUhDyes/edit?usp=sharing It is not fully completed and probably a dumb idea, so please go easy on it. |
Beta Was this translation helpful? Give feedback.
-
The HTML attributes page has many broken or missing links, is difficult to maintain,
We have two HTML attribute subtrees:
The global attributes page is fairly well maintained, with no attribute being added to the page unless there is a subpage. It also makes sense to have pages for each individual global attribute as they are, well, global. Other attributes may be valid on a subset of elements, or just a single element.
It makes sense to create an attribute page for an element used with all or several elements if they have the same use in each of those elements - that removes a lot of content repetition in multiple element pages and helps with maintenance. It is also good to put element exceptions those pages so devs know that an atttibute may not be used the same way on each element that accepts it as an attribute.
It doesn't make sense to create a full page for a basic attribute only relevant to one element. If we have a list of "most HTML attributes", if an attribute is used in one or two elements, we can provide a brief definition and link to the description in both pages.
The main conundrum comes from attributes that are in several pages, with different effects based on the HTML element on which it is used.
there is a table of attributes entitled HTML attribute reference at https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes. The list is incomplete both in terms of there being missing attributes (over 10 global attributes are missing from the list) and in terms of there being red non-links due to missing documentation. We get a lot of issues for this page, and for the attribute pages in the subtree.
Suggested fixes:
For the DL of attributes:
DT:
DD
Some PRs:
form
attribute page content#28375Beta Was this translation helpful? Give feedback.
All reactions