Package org.htmlparser.tags

Examples of org.htmlparser.tags.EndTag.elementEnd()


    {
        String testHtml = "<SCRIPT>document.write(d+\".com\")</SCRIPT>";
        int pos = testHtml.indexOf("</SCRIPT>");
        EndTag endTag = (EndTag) EndTag.find(testHtml, pos);
        assertEquals("endtag element begin", 32, endTag.elementBegin());
        assertEquals("endtag element end", 40, endTag.elementEnd());
    }
}
View Full Code Here


  public void testEndTagFind() {
    String testHtml = "<SCRIPT>document.write(d+\".com\")</SCRIPT>";
    int pos = testHtml.indexOf("</SCRIPT>");
    EndTag endTag = (EndTag) EndTag.find(testHtml, pos);
    assertEquals("endtag element begin", 32, endTag.elementBegin());
    assertEquals("endtag element end", 40, endTag.elementEnd());
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.