Skip to content
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

> When the [kbd](https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-kbd-element) element is nested inside a [samp](https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-samp-element) element, it represents the input as it was echoed by the system. #6333

Open
skillenj79 opened this issue Mar 10, 2022 · 0 comments

Comments

@skillenj79
Copy link

When the kbd element is nested inside a samp element, it represents the input as it was echoed by the system.

When the kbd element contains a samp element, it represents input based on system output, for example invoking a menu item.

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.

https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-kbd-element

Basically semantics wankery, and maybe we should change it...

Originally posted by @zcorpan in whatwg/html#7672 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@skillenj79 and others