code: function (node) {
      var next = node;
      while (next
          && (next.nodeType != this.ELEMENT_NODE)
          && this.REGEXPS.whitespace.test(next.textContent)) {
        next = next.nextSibling;
      }
      return next;
    }
docs: Finds the next element, starting from the given node, and ignoring
  whitespace in between. If the given node is an element, the same node is
  returned.