Beispiel #1
0
        public virtual void OwnerDocument()
        {
            Document doc = iText.StyledXmlParser.Jsoup.Jsoup.Parse("<p>Hello");

            iText.StyledXmlParser.Jsoup.Nodes.Element p = doc.Select("p").First();
            NUnit.Framework.Assert.IsTrue(p.OwnerDocument() == doc);
            NUnit.Framework.Assert.IsTrue(doc.OwnerDocument() == doc);
            NUnit.Framework.Assert.IsNull(doc.Parent());
        }