public HtmlNodeNavigator(HtmlDocument document, HtmlNode currentNode, HtmlNodeNavigatorOptions options) { if (currentNode == null) { throw new ArgumentNullException(nameof(currentNode)); } Document = document; CurrentNode = currentNode; BaseNode = currentNode; Options = options; if ((options & HtmlNodeNavigatorOptions.RootNode) == HtmlNodeNavigatorOptions.RootNode) { _rootNode = CurrentNode; } }
public Navigable(HtmlDocument ownerDocument, HtmlNode node, HtmlNodeNavigatorOptions options) { _ownerDocument = ownerDocument; _node = node; _options = options; }