Should descriptions for similar theme share the same pattern? #535
Unanswered
akaabdullahmateen
asked this question in
Content
Replies: 0 comments 8 replies
-
Tagging @mdn/yari-content ☝️ |
Beta Was this translation helpful? Give feedback.
3 replies
-
We do try to do that. Please understand that it's a bit of a game of whack a mole on a site where anyone can contribute. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I would appreciate any feedback on my pull request #21749. Its been nearly a week 😭 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Consider this example from the
<audio>
element's Usage notes. There are three sub-headings:HTMLMediaElement.audioTrack
,HTMLMediaElement.videoTrack
, andHTMLMediaElement.textTrack
. All three are extremely similar in nature except for the replaced use of the words audio/video/text as appropriate. Yet, all three of them are worded very differently. For the exact same usage, they use the verbs: alerted, informed, and notified, respectively; which just adds confusion, ambiguity and distinction when there should be none.For comparison, here is what alternative versions would look like:
HTMLMediaElement.audioTrack
: AnaudioTrackList
containing all of the media element's audio tracks. You can add an event listener foraddtrack
to this object to be alerted when new audio tracks are added to the element.HTMLMediaElement.videoTrack
: AvideoTrackList
containing all of the media element's video tracks. You can add an event listener foraddtrack
to this object to be alerted when new video tracks are added to the element.HTMLMediaElement.textTrack
: AtextTrackList
containing all of the media element's text tracks. You can add an event listener foraddtrack
to this object to be alerted when new text tracks are added to the element.This distinct wording and varying descriptions for very similar topics is observed across different articles and HTML element references, for example, as well. Consider the descriptions of the attribute
crossorigin
under the<video>
element,<audio>
element, and<img>
element. All three of them should have the same exact description except for the replaced usage of the words video/audio/image as appropriate.If more detail is present for an attribute under one element, it should be visible (either copy-pasted or hyperlinked) for the same attribute under a different element. Because, as it currently is, some elements have important details for an attribute, that is not visible under another element for the exact same attribute when there use is intrinsically same. For example, consider these examples:
<a>
download
attribute and<area>
download
attribute : This is correct because the same details for the attributedownload
is visible (through hyperlink) under both elements.<a>
href
attribute and<area>
href
attribute : There are different details under both elements for the same attribute in same context.<a>
rel
attribute and<area>
rel
attribute : There are different details under both elements for the same attribute in same context.Beta Was this translation helpful? Give feedback.
All reactions