Example #1
0
        public HtmlElement Prepend(string html)
        {
            if (html == null)
            {
                throw new ArgumentNullException("html");
            }

            var nodes = HtmlParser.ParseFragment(html, this, this.BaseUri);

            Prepend(nodes.ToArray());
            return(this);
        }
Example #2
0
        // TODO Requires f-web-dom upgrade to include DomReader/HtmlReader
        public HtmlElement Append(string html)
        {
            if (html == null)
            {
                throw new ArgumentNullException("html");
            }

            IList <DomNode> nodes = HtmlParser.ParseFragment(html, this, BaseUri);

            Append(nodes.ToArray());
            return(this);
        }