Replies: 7 comments 1 reply
-
@chrisdavidmills I just wanted to check my understanding of this task. We need to make sure the list on the |
Beta Was this translation helpful? Give feedback.
-
Yup, that sounds about right. And then in the blue box near the top of each input type page, delete the "Supported common attributes" row. |
Beta Was this translation helpful? Give feedback.
-
@estelle Are you still planning to work on this one? |
Beta Was this translation helpful? Give feedback.
-
Hoping to do it Q3 |
Beta Was this translation helpful? Give feedback.
-
Converting this into a discussion as there's conflicting solutions here and in the owd project which should be discussed here openwebdocs/project#114 |
Beta Was this translation helpful? Give feedback.
-
Also related to this is a previous discussion which you can find here #206 Notably: sideshowbarker I think there are some specific cases in which splitting out some attribute documentation into sub-articles can clearly improve the content. But in general it also has some visible advantages: Specifically, it allows the MDN documentation for an attribute to: have its own Specifications table and spec URL Here’s one concrete example: A couple days ago, I split out some MDN documentation related to the name attribute of the meta element into its own sub-article: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name In fact, I went even deeper than that and also created another sub-article one more level down: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name/theme-color And in reviewing a related BCD change I also made, @Elchi3 pointed out: I wonder if we have agreement on page structures on MDN. So far, the HTML reference documentation has pages for HTML elements and maybe sometimes pages for attributes. You've decided to go deeper and create pages for more attributes and specific values. This might make sense, but I would like it to be discussed. So, I’m raising this issue here for discussion. mdn/browser-compat-data#6014 (comment) has some rationale for creating those sub-articles. But to also elaborate here on the rationale: one detail I want to mention is that the title I gave to https://developer.mozilla.org/docs/Web/HTML/Element/meta/name is the same as the corresponding https://html.spec.whatwg.org/multipage/#standard-metadata-names spec section. That title is Standard metadata names and it follows a precedent in that we already a similar https://developer.mozilla.org/docs/Web/HTML/Link_types article related to the rel attribute and the HTML spec https://html.spec.whatwg.org/multipage/#linkTypes section titled Link types. I think name (for meta) and rel are special cases meriting special treatment, because both are: attributes with their own spec section, with its own heading (Link types for rel, Standard metadata names for name) As far as name for meta, it’s clearly not strictly necessary for it to have its own sub-article — but I think the main criterion for using a sub-article structure for it is: it’s so obviously similar to other cases (rel, autocomplete) that MDN already uses a sub-article structure for (as outlined above). And chrisdavidmills We don't have rules for when an attribute (or individual value) warrants its own page, but given that @ddbeck / @Elchi3 / @wbamberg are working on page structures and linting for pages in the next gen of MDN, we should probably define some. I'd suggest making them all optional, but there should be a set of criteria that provide pointers towards an attribute of individual value warranting its own page (lots of info to cover, needs separate BCD entry/entries, own section in spec, etc.). I also think we should OK attribute or individual value subpages, but draw the line at any further levels down that that? I think level is possibly a bit over the top. |
Beta Was this translation helpful? Give feedback.
-
The original list of html attributes is here mdn/content#1712 (comment) |
Beta Was this translation helpful? Give feedback.
-
See https://discourse.mozilla.org/t/attributes-for-input-elements/43899.
We should give each input element its own "Attributes" list including all the attributes it supports (apart from the real global ones) and scrap the "Supported common attributes" row in the blue box.
MDN URL: https://developer.mozilla.org/en-US/docs/Web/HTML
Beta Was this translation helpful? Give feedback.
All reactions