Package org.htmlparser.tags

Examples of org.htmlparser.tags.BaseHrefTag.toHtml()


            node[0] instanceof BaseHrefTag);
        BaseHrefTag baseTag = (BaseHrefTag) node[0];
        assertStringEquals(
            "Base Tag HTML",
            "<BASE TARGET=\"_top\">",
            baseTag.toHtml());
    }

}
View Full Code Here


        String html = "<base target=\"_top\">";
        createParser(html);
        parseAndAssertNodeCount(1);
        assertTrue("Should be a base tag but was "+node[0].getClass().getName(),node[0] instanceof BaseHrefTag);
        BaseHrefTag baseTag = (BaseHrefTag)node[0];
        assertStringEquals("Base Tag HTML", html, baseTag.toHtml());
    }

}
View Full Code Here

    createParser("<base target=\"_top\">");
    parser.registerScanners();
    parseAndAssertNodeCount(1);
    assertTrue("Should be a base tag but was " + node[0].getClass().getName(), node[0] instanceof BaseHrefTag);
    BaseHrefTag baseTag = (BaseHrefTag) node[0];
    assertStringEquals("Base Tag HTML", "<BASE TARGET=\"_top\">", baseTag.toHtml());
  }

}
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.