public HorizontalRule() { super("hr", ComponentTypes.HorizontalRule); setInlineClosingTag(true); }
public HorizontalRule() { super("hr", ComponentTypes.HorizontalRule); setInlineClosingTag(true); }
public HorizontalRule() { super("hr", ComponentTypes.HorizontalRule); setInlineClosingTag(true); }
/** * Differences Between HTML and XHTML * <p> * In HTML the base tag has no end tag. * <p> * In XHTML the base tag must be properly closed. */ @Override public void preConfigure() { super.preConfigure(); try { if (getPage().getBrowser() .getHtmlVersion() .name() .startsWith("X")) { setInlineClosingTag(true); } } catch (Exception e) { HorizontalRule.log.log(Level.FINE, "Unable to determine whether XHTML or HTML. Will still render correctly, just not W3 Compliant.", e); } } }
/** * Differences Between HTML and XHTML * <p> * In HTML the base tag has no end tag. * <p> * In XHTML the base tag must be properly closed. */ @Override public void preConfigure() { super.preConfigure(); try { if (getPage().getBrowser() .getHtmlVersion() .name() .startsWith("X")) { setInlineClosingTag(true); } } catch (Exception e) { HorizontalRule.log.log(Level.FINE, "Unable to determine whether XHTML or HTML. Will still render correctly, just not W3 Compliant.", e); } } }
/** * Differences Between HTML and XHTML * <p> * In HTML the base tag has no end tag. * <p> * In XHTML the base tag must be properly closed. */ @Override public void preConfigure() { super.preConfigure(); try { if (getPage().getBrowser() .getHtmlVersion() .name() .startsWith("X")) { setInlineClosingTag(true); } } catch (Exception e) { HorizontalRule.log.log(Level.FINE, "Unable to determine whether XHTML or HTML. Will still render correctly, just not W3 Compliant.", e); } } }