public DefaultNodeMatcher(ElementSelector es, NodeTypeMatcher ntm) { elementSelector = es; nodeTypeMatcher = ntm; }
/// <summary> /// Creates a new DefaultNodeMatcher using the given <see cref="ElementSelector"/> and <see cref="NodeTypeMatcher"/>. /// </summary> /// <param name="es">the element selector to use</param> /// <param name="ntm">NodeTypeMatcher to use</param> /// <remarks> /// <para>The <see cref="ElementSelector"/>s are consulted in order so that /// the second <see cref="ElementSelector"/> only gets to match the nodes /// that the first one couldn't match to any test nodes ate all and /// so on.</para> /// </remarks> public DefaultNodeMatcher(NodeTypeMatcher ntm, params ElementSelector[] es) { nodeTypeMatcher = ntm; elementSelectors = es; }