From 8470d86dc11ecf9e14c6a1c44c52a7e4552483c3 Mon Sep 17 00:00:00 2001
From: Weidong Sun
+ * Use examples:
+ *
+ *
+ * Element e = Element.parse("");
Element e = Element.parse("
Element e = Element.parse("
");
P3
"); + Element p4 = Element.parse("P4
"); div.insertChildren(1, p3); div.insertChildren(3, p4); Elements els2 = div.children(); @@ -1839,8 +1839,8 @@ public void doesntDeleteZWJWhenNormalizingText() { public void testReparentSeperateNodes() { String html = "One
Two"; Document doc = Jsoup.parse(html); - Element new1 = new Element("p").text("Three"); - Element new2 = new Element("p").text("Four"); + Element new1 = Element.parse("
Three
"); + Element new2 = Element.parse("Four
"); doc.body().insertChildren(-1, new1, new2); assertEquals("One
Two
Three
Four
", TextUtil.stripNewlines(doc.body().html())); @@ -1863,14 +1863,14 @@ public void testNotActuallyAReparent() { String html = "One
"); + Element new2 = Element.parse("Two
"); div.addChildren(new1, new2); assertEquals("One
Two
Three
"); Element wrap = new Element("nav"); wrap.addChildren(0, new1, new3);