示例#1
0
        protected void Load(char[] html)
        {
            Clear();

            CreateNewDom(html);
            HtmlParser.DomElementFactory factory = new HtmlParser.DomElementFactory(Document);
            if (html != null)
            {
                foreach (IDomObject obj in factory.CreateObjects())
                {
                    Document.ChildNodes.Add(obj);
                    AddSelectionRange(Document.ChildNodes);
                }
            }
        }
        protected void Load(char[] html)
        {
            Clear();

            CreateNewDom(html);
            HtmlParser.DomElementFactory factory = new HtmlParser.DomElementFactory(Document);
            if (html != null)
            {
                foreach (IDomObject obj in factory.CreateObjects())
                {
                    Document.ChildNodes.Add(obj);
                    AddSelectionRange(Document.ChildNodes);
                }

            }
        }
示例#3
0
        public override void FixtureSetUp()
        {
            base.FixtureSetUp();

            Dom = TestDom("TestHtml");
            factory = new DomElementFactory(Dom.Document);
        }
 public override void FixtureSetUp()
 {
     base.FixtureSetUp();
     string html = Support.GetFile(testFile);
     Dom = CQ.Create(html);
     factory = new DomElementFactory(Dom.Document);
 }