accesskey
with keys for three elementsThere are three links, the first with accesskey="1"
, the next one accesskey="2"
and the last one accesskey="3"
. The first link is to the github repository for this test, the second is to the rendered "github.io" base page. The last link goes to Wikipedia.
The keys "1", "2" and "3", with relevant modifiers, open the first, second and third links. If the DOM attribute accessKey
is supported, the Values should be listed as 1, 2, and 3 respectively. If the DOM attribute accessKeyLabel
is supported, the links should have the text "activation: [modifiers] 1" (or 2, 3 as appropriate) as the last part of the link content.
Value of the accessKey DOM attribute:
Value of the accessKey DOM attribute:
Value of the accessKey DOM attribute:
accessKey
is supportedaccessKeyLabel
is not supportedaccessKey
is supportedaccessKeyLabel
is not supportedaccessKey
and accessKeyLabel
are supportedaccessKey
is supportedaccessKey
is supportedaccessKeyLabel
is not supportedThe accesskey
attribute was first defined in HTML 4, and an improved version was redefined in HTML5
This is a basic test of whether browsers implement part of the HTML5 algorithm. For users who do not have the key "available" but for whom the "g" key is "available", the shortcut should be based on "g".
Unfortunately the HTML 5 specification does not define what "available" means. At the very least, it should be simple for the user to generate such a key, and using the HTML5 definition which requires the user agent to assign modifiers, "available" should mean it must not require any modifiers to generate the base key.