code: function populateOptions(node, values) {
    if (node.tagName !== 'option') {
      for (var i = 0, len = node.children.length; i < len ; i++) {
        populateOptions(node.children[i], values);
      }
      return;
    }
    var value = node.attrs && node.attrs.value;
    value = value || node.props && node.props.value;
  
    if (!values.hasOwnProperty(value)) {
      return;
    }
    node.attrs = node.attrs || {};
    node.attrs.selected = 'selected';
    node.props = node.props || {};
    node.props.selected = true;
  }
docs: Populates values to options node.
  
  @param  Object node      A starting node (generaly a select node).
  @param  Object values    The selected values to populate.