You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For nested kbd elements, the spec says “When the kbd element is nested inside another kbd element, it represents an actual key or other single unit of input as appropriate for the input mechanism.”
First, how is “an actual key” to be understood? With nested kbd elements we seem to usually deal with two or more keys, but this phrasing (“an”) suggests it could only cover one key. In that case, however, it seems like one kbd element would suffice. [Had applied this to the parent kbd element, but on re-reading this is clear for child kbd elements.]
Then, can you clarify how “anonymous” content as part of multiple kbd elements is to be understood exactly? I.e., what does “bar” in <kbd><kbd>foo</kbd> bar <kbd>baz</kbd></kbd> stand for, if anything?
The spec example suggests it should be read as a conjunction, because the only example using nesting works with a “+”. But that doesn’t seem to be the only possible read, especially since in the wild, authors join keyboard combinations by natural language (“press ‘Ctrl’ and ‘Alt’ and ‘Del’”, “hit ‘space’ or ‘enter’ to continue”, “press ‘1‘ then ‘2’ then ‘3’”, but also “‘shift’ → ‘space’”). How are these cases to be read? What markup do they warrant?
Thanks for clarifying!
The text was updated successfully, but these errors were encountered:
What is the issue with the HTML Standard?
For nested
kbd
elements, the spec says “When thekbd
element is nested inside anotherkbd
element, it represents an actual key or other single unit of input as appropriate for the input mechanism.”First, how is “an actual key” to be understood? With nested[Had applied this to the parentkbd
elements we seem to usually deal with two or more keys, but this phrasing (“an”) suggests it could only cover one key. In that case, however, it seems like onekbd
element would suffice.kbd
element, but on re-reading this is clear for childkbd
elements.]Then, can you clarify how “anonymous” content as part of multiple
kbd
elements is to be understood exactly? I.e., what does “bar” in<kbd><kbd>foo</kbd> bar <kbd>baz</kbd></kbd>
stand for, if anything?The spec example suggests it should be read as a conjunction, because the only example using nesting works with a “+”. But that doesn’t seem to be the only possible read, especially since in the wild, authors join keyboard combinations by natural language (“press ‘Ctrl’ and ‘Alt’ and ‘Del’”, “hit ‘space’ or ‘enter’ to continue”, “press ‘1‘ then ‘2’ then ‘3’”, but also “‘shift’ → ‘space’”). How are these cases to be read? What markup do they warrant?
Thanks for clarifying!
The text was updated successfully, but these errors were encountered: