Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }