/** * Constructs a base instance with the given reference * * @param baseReference */ public Base(String baseReference) { this(); addAttribute(BaseAttributes.HRef, baseReference); }
/** * Sets the Base of this page * * @param base * The Base of the page */ @SuppressWarnings("unchecked") public final J setBase(Base base) { this.base = base; if (base != null) { base.setPage(page); } return (J) this; }
/** * 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) { Base.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) { Base.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) { Base.log.log(Level.FINE, "Unable to determine whether XHTML or HTML. Will still render correctly, just not W3 Compliant.", e); } }
/** * Constructs a base instance with the given reference * * @param baseReference */ public Base(String baseReference) { this(); addAttribute(BaseAttributes.HRef, baseReference); }
/** * Sets the Base of this page * * @param base * The Base of the page */ @SuppressWarnings("unchecked") public final J setBase(Base base) { this.base = base; if (base != null) { base.setPage(page); } return (J) this; }
/** * Constructs a base instance with the given reference * * @param baseReference */ public Base(String baseReference) { this(); addAttribute(BaseAttributes.HRef, baseReference); }
/** * Sets the Base of this page * * @param base * The Base of the page */ @SuppressWarnings("unchecked") public final J setBase(Base base) { this.base = base; if (base != null) { base.setPage(page); } return (J) this; }