Last modified: 2013-09-25 20:09:45 UTC
When you nest a HTML <kbd> inside another <kbd> MediaWiki parses it incorrectly and outputs one <kbd> element and escaped <kbd> tags. ie: The input <kbd><kbd>...</kbd></kbd> incorrectly becomes: <kbd><kbd>...</kbd></kbd> This is very important because HTML5 says this about the <kbd> element: 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. In other words this is valid html: <kbd><kbd>Shift</kbd>+<kbd>F3</kbd></kbd> Which semantically means user input with the nested <kbd> elements identifying individual keypresses. Note that if you have tidy enabled the bug does not show up.
Same goes for <var>.
I6ad64e6e
https://gerrit.wikimedia.org/r/30775 (Gerrit Change I6ad64e6eb4c9b5bdc15be513f55c58f6717c3939) | change APPROVED and MERGED [by jenkins-bot]
This seems to have landed months ago, and seems to work at https://www.mediawiki.org/wiki/Bug41545 Resolving as fixed.