JSFiddle - React, Tailwind, and code Playground
JavaScript
var pre, node;
node = document.createElement('a');
node.href = 'http://example.org';
node.accessKey = 'e';
log('detached: ' + val(node.accessKeyLabel));
document.body.appendChild(node);
log('attached: ' + val(node.accessKeyLabel));
function log(msg) {
if (!pre) {
pre = document.createElement('pre');
document.body.appendChild(pre);
}
pre.appendChild(document.createTextNode(msg + '\n'));
}
function val(value) {
return String(JSON.stringify(value));
}