<!DOCTYPE html>
<html>
<body>
<ul role="tree">
<li role="treeitem" aria-expanded="false">
Major
</li>
<li id="node" role="treeitem" aria-expanded="false">
Minor
</li>
<ul id="subtree" role="group" hidden>
<li role="treeitem">
Minor Seventh
</li>
<li role="treeitem">
Minor Ninth
</li>
</ul>
</ul>
<script>
function go() {
var node = document.getElementById('node');
var subtree = document.getElementById('subtree');
node.setAttribute('aria-expanded', 'true');
subtree.hidden = false;
}
</script>
</body>
</html>