Examples of DoctypeTag


Examples of org.htmlparser.tags.DoctypeTag

        throws ParserException
    {
        String tagContents = tag.getText();
        tagContents = tagContents.substring(9, tagContents.length());
        tagData.setTagContents(tagContents);
        return new DoctypeTag(tagData);
    }
View Full Code Here

Examples of org.htmlparser.tags.DoctypeTag

        parseAndAssertNodeCount(9);
        // The node should be an HTMLLinkTag
        assertTrue(
            "Node should be a HTMLDoctypeTag",
            node[0] instanceof DoctypeTag);
        DoctypeTag docTypeTag = (DoctypeTag) node[0];
        assertStringEquals(
            "toHTML()",
            "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\">",
            docTypeTag.toHtml());
    }
View Full Code Here

Examples of org.htmlparser.tags.DoctypeTag

        registerTag (new BaseHrefTag ());
        registerTag (new Bullet ());
        registerTag (new BulletList ());
        registerTag (new DefinitionList ());
        registerTag (new DefinitionListBullet ());
        registerTag (new DoctypeTag ());
        registerTag (new FormTag ());
        registerTag (new FrameSetTag ());
        registerTag (new FrameTag ());
        registerTag (new HeadingTag ());
        registerTag (new ImageTag ());
View Full Code Here

Examples of org.htmlparser.tags.DoctypeTag

        "</HTML>\n");
        createParser(testHTML);
        parseAndAssertNodeCount(4);
        // The first node should be an DoctypeTag
        assertTrue("First node should be a DoctypeTag",node[0] instanceof DoctypeTag);
        DoctypeTag docTypeTag = (DoctypeTag)node[0];
        assertStringEquals("toHTML()","<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\">",docTypeTag.toHtml());
    }
View Full Code Here

Examples of org.htmlparser.tags.DoctypeTag

    createParser(testHTML);
    parser.registerScanners();
    parseAndAssertNodeCount(9);
    // The node should be an HTMLLinkTag
    assertTrue("Node should be a HTMLDoctypeTag", node[0] instanceof DoctypeTag);
    DoctypeTag docTypeTag = (DoctypeTag) node[0];
    assertStringEquals("toHTML()", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\">", docTypeTag.toHtml());
  }
View Full Code Here

Examples of org.htmlparser.tags.DoctypeTag

  protected Tag createTag(TagData tagData, Tag tag, String url) throws ParserException {
    String tagContents = tag.getText();
    tagContents = tagContents.substring(9, tagContents.length());
    tagData.setTagContents(tagContents);
    return new DoctypeTag(tagData);
  }
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.