code: function(name, bool, node) {
          node = node || this;
          if (arguments.length == 1) {
              bool = !node.hasAttribute(name) || node.getAttribute(name) == 'false';
          }
          bool ? node.setAttribute(name, 'true') : node.setAttribute(name, 'false');
      }
docs: for ARIA state properties