code: function normalizeSelector(selector) {
    var parts = selector.match(/[^\s>]+|>/ig);
    selector = (parts) ? parts.join(' ') : '';
    return {
      normalized: selector,
      parts: parts || []
    };
  }
docs: Normalizes the selector and returns the new version and its parts.