protected void Create(string selector, CQ context) { // when creating a new CsQuery from another, leave Dom blank - it will be populated automatically with the // contents of the selector. CsQueryParent = context; if (!String.IsNullOrEmpty(selector)) { Selectors = new SelectorChain(selector); AddSelectionRange(Selectors.Select(Document, context.Children())); } }