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); } } }
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); }