Beispiel #1
0
        /// <summary>
        /// Create a new selector from any string
        /// </summary>
        /// <param name="selector"></param>
        public SelectorChain(string selector)
        {
            var parser = new SelectorParser();

            Selectors.AddRange(parser.Parse(selector));
        }
Beispiel #2
0
        /// <summary>
        /// Create a new selector from any string.
        /// </summary>
        ///
        /// <param name="selector">
        /// The CSS selector string, or a string of HTML.
        /// </param>

        public Selector(string selector)
        {
            var parser = new SelectorParser();

            Clauses.AddRange(parser.Parse(selector));
        }